1
0
Fork 0
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:
Casey Lee 2021-03-28 22:02:11 -07:00
parent fb937040ab
commit 2ce929a747

View file

@ -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