Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Jul 18, 2023
1 parent c5b0337 commit c848d90
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/lint-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,19 @@ jobs:
- name: Run Rust Tests
run: |
set -ex
mkdir -p target
touch target/tmp.profraw
rm -rf target/*.profraw
cargo sweep -s
cargo llvm-cov show-env --export-prefix > llvm-cov.env
source llvm-cov.env
export LLVM_PROFILE_FILE="$(pwd)/target/scuffle-%p-%24m.profraw"
export RUSTFLAGS="-C instrument-coverage -C llvm-args=--instrprof-atomic-counter-update-all --cfg=coverage --cfg=trybuild_no_target"
export CARGO_INCREMENTAL=1
cargo build -r --tests
cargo sweep -f
cp -r target target-cache
cargo nextest run --tests -r --no-fail-fast -E "not test(_v6)" --status-level all --profile ci
export CARGO_LLVM_COV="1"
export CARGO_LLVM_COV_TARGET_DIR="$(pwd)/target"
cargo llvm-cov report -r --lcov --output-path lcov.info --ignore-filename-regex "(main\.rs|tests|.*\.nocov\.rs)"
rm -rf target
mv target-cache target
Expand Down

0 comments on commit c848d90

Please sign in to comment.