Skip to content

Commit f487303

Browse files
committed
Bump version
1 parent f4b56d8 commit f487303

File tree

4 files changed

+164
-199
lines changed

4 files changed

+164
-199
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,23 @@ jobs:
3535
pre-commit run --all-files
3636
3737
- name: Build
38-
run: cargo build --verbose
38+
run: cargo build
3939

4040
- name: Run tests
41-
run: cargo test --verbose
41+
run: cargo test
4242

4343
- name: Code coverage
4444
run: |
4545
cargo install cargo-llvm-cov
4646
# rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu
4747
cargo llvm-cov
4848
49+
COVERAGE=$(cargo llvm-cov --json | jq -r '.data[0].totals.lines.percent')
50+
51+
if (( $(echo "$COVERAGE < 90" | bc -l) )); then
52+
echo "❌ Code coverage is below 90% (Current: ${COVERAGE}%)"
53+
exit 1
54+
fi
4955
# - name: Install Miri
5056
# run: |
5157
# rustup toolchain install nightly --component miri

0 commit comments

Comments
 (0)