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.
FLEcli/.github/workflows/ci.yml

31 lines
689 B

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
- name: Update version
run: ./update-version.sh
- 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