Skip to content

Commit 05190e0

Browse files
committed
Add code coverage job for Go library
1 parent 0555a2b commit 05190e0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/go.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@ jobs:
4343
working-directory: ./go
4444
run: make test
4545

46+
coverage:
47+
name: Code Coverage
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v3
51+
- uses: actions/setup-go@v3
52+
with:
53+
go-version: 1.19.2
54+
- name: Run coverage
55+
run: go test -race -coverprofile=coverage.txt -covermode=atomic
56+
- name: Upload coverage to Codecov
57+
uses: codecov/codecov-action@v3
58+

0 commit comments

Comments
 (0)