add codecov integration

This commit is contained in:
Casey Lee 2021-03-28 22:02:11 -07:00
parent 72f2d2de51
commit f58fbc0dff
No known key found for this signature in database
GPG key ID: 1899120ECD0A1784
2 changed files with 8 additions and 2 deletions

View file

@ -23,9 +23,13 @@ jobs:
- uses: actions/setup-go@v1
with:
go-version: 1.14
- run: go test -cover ./...
- run: go test -cover -coverprofile=coverage.txt -covermode=atomic ./...
env:
CGO_ENABLED: 0
CGO_ENABLED: 0
- uses: codecov/codecov-action@v1
with:
files: coverage.txt
fail_ci_if_error: true # optional (default = false)
snapshot:
name: Snapshot

2
.gitignore vendored
View file

@ -17,3 +17,5 @@
*.nupkg
.vscode/
.idea/
coverage.txt