diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 24e3a76e1..b4b54951c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -36,15 +36,12 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --all-features --no-fail-fast # Customize args for your own needs env: CARGO_INCREMENTAL: '0' RUSTFLAGS: | - -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code - -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage - RUSTDOCFLAGS: | - -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code - -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage' + -Cinstrument-coverage + LLVM_PROFILE_FILE: | + 'cargo-test-%p-%m.profraw' - name: Download grcov run: | @@ -61,4 +58,8 @@ jobs: - name: Gather coverage data id: coverage uses: actions-rs/grcov@v0.1 + + - name: html + run: | + grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html