.github/workflows/go.yml (view raw)
1name: build
2on: [push, pull_request]
3jobs:
4 test-build:
5 name: Test & Build
6 runs-on: ubuntu-latest
7 steps:
8 - name: Set up Go 1.13
9 uses: actions/setup-go@v1
10 with:
11 go-version: 1.13
12 id: go
13 - name: Check out code into the Go module directory
14 uses: actions/checkout@v1
15 - name: Test
16 run: |
17 go mod tidy -v
18 go test -race -coverprofile=coverage.txt -covermode=atomic ./..
19 - uses: codecov/codecov-action@v1
20 with:
21 token: ${{ secrets.CODECOV_TOKEN }}
22 - name: Build
23 run: go build ./...