mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
add codecov integration
This commit is contained in:
parent
fb937040ab
commit
2ce929a747
1 changed files with 6 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
|
- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue