Tarpaulin -> grcov
This commit is contained in:
parent
95c7d1a620
commit
fd3f877f93
1 changed files with 24 additions and 6 deletions
30
.github/workflows/coverage.yml
vendored
30
.github/workflows/coverage.yml
vendored
|
@ -17,13 +17,31 @@ jobs:
|
||||||
- name: Checkout Polaris
|
- name: Checkout Polaris
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
- name: Run Tarpaulin
|
components: llvm-tools-preview
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
- name: Install grcov
|
||||||
with:
|
run: cargo install grcov
|
||||||
args: "--all-features --ignore-tests"
|
- name: Run tests
|
||||||
out-type: Xml
|
run: cargo test --no-fail-fast
|
||||||
timeout: 240
|
env:
|
||||||
|
RUSTFLAGS: "-Cinstrument-coverage"
|
||||||
|
- name: Gather coverage results
|
||||||
|
run: >
|
||||||
|
grcov
|
||||||
|
.
|
||||||
|
-t lcov
|
||||||
|
-o coverage.txt
|
||||||
|
--llvm
|
||||||
|
--branch
|
||||||
|
--ignore-not-existing
|
||||||
|
--excl-line "#\[derive\("
|
||||||
|
--excl-br-line "#\[derive\("
|
||||||
|
--excl-start "mod tests \{"
|
||||||
|
--excl-br-start "mod tests \{"
|
||||||
|
working-directory: lib
|
||||||
- name: Upload Results
|
- name: Upload Results
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
verbose: true
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue