We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4aa242 commit 09f5db5Copy full SHA for 09f5db5
.github/workflows/go.yml
@@ -44,3 +44,32 @@ jobs:
44
45
- name: Test code
46
run: go test -race -v ./...
47
+
48
+ coverage:
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - name: Install Go
52
+ if: success()
53
+ uses: actions/setup-go@v3
54
+ with:
55
+ go-version: '1.20'
56
57
+ - name: Checkout code
58
+ uses: actions/checkout@v3
59
60
+ - name: Calc coverage
61
+ run: |
62
+ export PATH=$PATH:$(go env GOPATH)/bin
63
+ go test -v -covermode=count -coverprofile=coverage.out
64
65
+ - name: Convert coverage to lcov
66
+ uses: jandelgado/[email protected]
67
68
+ infile: coverage.out
69
+ outfile: coverage.lcov
70
71
+ - name: Coveralls
72
+ uses: coverallsapp/[email protected]
73
74
+ github-token: ${{ secrets.github_token }}
75
+ path-to-lcov: coverage.lcov
0 commit comments