.github/workflows/test.yml (view raw)
1name: Test
2
3on: [push, pull_request]
4
5jobs:
6 build:
7 name: Test
8 runs-on: ubuntu-latest
9 steps:
10 - name: Set up Go 1.x
11 uses: actions/setup-go@v2
12 with:
13 go-version: ^1.14
14 id: go
15
16 - name: Check out code into the Go module directory
17 uses: actions/checkout@v2
18
19 - name: Build
20 run: go build -v .
21
22 - name: Test
23 run: go test -coverprofile=coverage.out -covermode=atomic -v .
24
25 - name: Upload coverage report
26 uses: codecov/codecov-action@v1
27 with:
28 file: ./coverage.out