Debian Codegraph @

.github/workflows/go.yml

raw
1 name: Go
2
3 on:
4 push:
5 branches: [master]
6 pull_request:
7 branches: [master]
8
9 jobs:
10 build:
11 name: Build
12 runs-on: ubuntu-latest
13 steps:
14 - name: Set up Go 1.x
15 uses: actions/setup-go@v2
16 with:
17 go-version: ^1.13
18
19 - name: Check out code into the Go module directory
20 uses: actions/checkout@v2
21
22 - name: Get dependencies
23 run: |
24 go mod download
25 go get
26
27 - name: Test
28 run: go test -v -coverprofile=covprofile.cov ./...
29
30 - name: Test generic
31 run: |
32 cd generic
33 go test -v ./...
34 cd ..
35
36 - name: Send coverage
37 env:
38 COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39 run: |
40 go get github.com/mattn/goveralls
41 go run github.com/mattn/goveralls -coverprofile=covprofile.cov -service=github