File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,25 +13,18 @@ jobs:
1313 name : Code Coverage
1414 runs-on : ubuntu-latest
1515 env :
16- RUSTFLAGS : " -Cinstrument-coverage"
17- RUSTDOCFLAGS : " -Cinstrument-coverage"
18- LLVM_PROFILE_FILE : " ./target/coverage/%p-%m.profraw"
19-
16+ CARGO_INCREMENTAL : 0
2017 steps :
2118 - name : Checkout
2219 uses : actions/checkout@v4
23- with :
24- persist-credentials : false
2520 - name : Install Rust toolchain
2621 uses : dtolnay/rust-toolchain@v1
2722 with :
28- toolchain : stable
23+ toolchain : nightly
2924 components : llvm-tools-preview
3025 - name : Rust Cache
3126 uses : Swatinem/rust-cache@v2.7.8
32- - name : Install grcov
33- run : if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
34- - name : Test
35- run : cargo test --all-features
36- - name : Run grcov
37- run : grcov . --binary-path ./target/debug/ -s . -t markdown --ignore-not-existing --excl-start "#\[cfg\(test\)\]" --excl-br-line "^\s*((debug_)?assert(_eq|_ne)?!|#\[derive\()" --excl-line "^\s*\S+\s*(=>)?\s*unreachable!.*" --ignore="**/example-crates/*" --ignore="**/tests/*" --ignore '/*' --ignore '**/examples/*'
27+ - name : Install cargo-llvm-cov
28+ run : if [[ ! -e ~/.cargo/bin/cargo-llvm-cov ]]; then cargo install cargo-llvm-cov; fi
29+ - name : Test and report coverage
30+ run : cargo +nightly llvm-cov -q --doctests --mcdc --workspace --ignore-filename-regex "example-crates/*"
You can’t perform that action at this time.
0 commit comments