dotfiles/.github/workflows/go.yaml

36 lines
760 B
YAML
Raw Normal View History

2021-01-18 10:14:37 +00:00
name: Go
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
2021-03-17 03:51:49 +00:00
go-version: 1.16
2021-01-18 10:14:37 +00:00
- run: go version
- run: go test -race ./...
build-gotip:
name: Build using gotip
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
2021-03-17 03:51:49 +00:00
go-version: 1.16
2021-01-18 10:14:37 +00:00
- run: go get golang.org/dl/gotip
- run: gotip download
- run: gotip version
- run: gotip build
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
2021-03-17 03:51:49 +00:00
version: v1.37