changeloguru/.github/workflows/go.yaml

41 lines
792 B
YAML
Raw Normal View History

name: Go
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "~1.16"
- run: go test -race ./...
2021-03-29 07:26:44 +00:00
build:
2021-03-18 10:15:20 +00:00
name: Build
2021-03-29 07:26:44 +00:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "~1.16"
- run: go build ./cmd/changeloguru
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
version: latest