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
659 B
30 lines
659 B
4 years ago
|
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: |
|
||
|
./update-version.sh
|
||
|
go build -v .
|
||
|
go test ./...
|
||
|
- name: Run GoReleaser
|
||
|
uses: goreleaser/goreleaser-action@master
|
||
|
with:
|
||
|
args: release --snapshot --skip-publish --rm-dist
|