chore: add go test, lint in github action

main
hau 2020-11-09 17:30:22 +07:00
parent 818cf7d270
commit ff51a06c52
1 changed files with 23 additions and 0 deletions

23
.github/workflows/go.yaml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Go
on: push
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
- run: go version
- run: go test -race ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
version: v1.32