Skip to content

Commit

Permalink
run tests in release mode in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RUAN0007 committed Sep 9, 2024
1 parent 1bbdee8 commit 1713d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Run tests with coverage
run: |
cargo tarpaulin --lib --out Html --output-dir target/debug/tarpaulin/ -- --nocapture > test.log
cargo tarpaulin --release --out Html --output-dir target/debug/tarpaulin/ -- --nocapture > test.log
LAST_LINE=$( tail -n 1 test.log)
CODE_COV=$(echo "$LAST_LINE" | cut -d '%' -f 1)
echo "CODE_COV: $CODE_COV"
Expand Down

0 comments on commit 1713d26

Please sign in to comment.