Unverified Commit dba2d345 authored by Massimiliano Pippi's avatar Massimiliano Pippi Committed by GitHub

[skip changelog] Add coverage for legacy tests (#390)

* add coverage for legacy tests
parent ec968996
comment: off
ignore:
- legacy/**/*
# ignore:
# - legacy/**/*
coverage:
status:
......
......@@ -76,6 +76,20 @@ jobs:
file: ./coverage_unit.txt
flags: unit
- name: Send legacy tests coverage to Codecov
# Since secrets aren't available on forks, we only
# upload coverage on `push`. This might change if
# Codecov whitelists GitHub, lifting the need
# for a token.
if: >
matrix.operating-system != 'windows-2019' &&
github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage_legacy.txt
flags: unit
- name: Send integration tests coverage to Codecov
# Since secrets aren't available on forks, we only
# upload coverage on `push`. This might change if
......
......@@ -32,7 +32,7 @@ tasks:
test-legacy:
desc: Run tests for the `legacy` package
cmds:
- go test {{ default "-v -failfast" .GOFLAGS }} ./legacy/...
- go test {{ default "-v -failfast" .GOFLAGS }} -coverprofile=coverage_legacy.txt ./legacy/...
test-unit-race:
desc: Run unit tests only with race condition detection
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment