add codecov integration (#585)

* add codecov integration

* include past tags when releasing
This commit is contained in:
Casey Lee 2021-03-28 22:15:56 -07:00 committed by GitHub
parent 72f2d2de51
commit 2825449c7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 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
@ -66,6 +70,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: GoReleaser
uses: goreleaser/goreleaser-action@v1
with:

2
.gitignore vendored
View file

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