mirror of https://github.com/on4kjm/FLEcli.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
662 B
30 lines
662 B
#Continuous integration action
|
|
name: Go Build & Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
name: Build & Test
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '^1.14.0'
|
|
- run: go mod download
|
|
- name: Build & Test
|
|
run: |
|
|
go build -v .
|
|
go test ./...
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@master
|
|
with:
|
|
args: release --snapshot --skip-publish --rm-dist |