Add code coverage report

This commit is contained in:
Lukas Herman
2020-10-01 22:25:32 -07:00
parent d129e982c7
commit 09c2998408
2 changed files with 13 additions and 1 deletions

View File

@@ -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:

10
codecov.yml Normal file
View File

@@ -0,0 +1,10 @@
coverage:
status:
project:
default:
# Allow decreasing 2% of total coverage to avoid noise.
threshold: 2%
patch: off
ignore:
- "examples/*"