From 1713d261f717c60dd9970fdc8666b3182ce94786 Mon Sep 17 00:00:00 2001 From: Ruan Pingcheng Date: Mon, 9 Sep 2024 11:35:50 +0800 Subject: [PATCH] run tests in release mode in github workflow --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index dc95cd1..239706a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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"