add codecov integration
This commit is contained in:
parent
72f2d2de51
commit
f58fbc0dff
2 changed files with 8 additions and 2 deletions
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
|
@ -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
2
.gitignore
vendored
|
@ -17,3 +17,5 @@
|
|||
*.nupkg
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
coverage.txt
|
||||
|
|
Loading…
Reference in a new issue