add codecov integration (#585)
* add codecov integration * include past tags when releasing
This commit is contained in:
parent
72f2d2de51
commit
2825449c7f
2 changed files with 10 additions and 2 deletions
10
.github/workflows/push.yml
vendored
10
.github/workflows/push.yml
vendored
|
@ -23,9 +23,13 @@ jobs:
|
||||||
- uses: actions/setup-go@v1
|
- uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.14
|
||||||
- run: go test -cover ./...
|
- run: go test -cover -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
env:
|
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:
|
snapshot:
|
||||||
name: Snapshot
|
name: Snapshot
|
||||||
|
@ -66,6 +70,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: GoReleaser
|
- name: GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v1
|
uses: goreleaser/goreleaser-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -17,3 +17,5 @@
|
||||||
*.nupkg
|
*.nupkg
|
||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
coverage.txt
|
||||||
|
|
Loading…
Add table
Reference in a new issue