2021-01-18 10:14:37 +00:00
|
|
|
name: Go
|
|
|
|
|
2021-04-14 04:36:36 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-01-18 10:14:37 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-04-08 13:58:04 +00:00
|
|
|
go-version: "~1.16"
|
2021-01-18 10:14:37 +00:00
|
|
|
- run: go test -race ./...
|
2021-04-14 04:36:36 +00:00
|
|
|
build:
|
2021-04-08 13:58:04 +00:00
|
|
|
name: Build
|
2021-01-18 10:14:37 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-04-08 13:58:04 +00:00
|
|
|
go-version: "~1.16"
|
|
|
|
- run: go build
|
2021-01-18 10:14:37 +00:00
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
2021-04-08 13:58:04 +00:00
|
|
|
version: latest
|