Skip to content

Commit

Permalink
Add code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
lherman-cs committed Oct 2, 2020
1 parent d129e98 commit 09c2998
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
env:
CGO_ENABLED: 0
- name: go test
run: go test -tags nolibopusfile ./... -v -race
run: go test -tags nolibopusfile ./... -v -race -coverprofile=coverage.txt -covermode=atomic
- uses: codecov/codecov-action@v1
if: matrix.go == '1.15'
- name: go test without CGO
run: go test . pkg/... -v
env:
Expand Down
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
project:
default:
# Allow decreasing 2% of total coverage to avoid noise.
threshold: 2%
patch: off

ignore:
- "examples/*"

0 comments on commit 09c2998

Please sign in to comment.