We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4b56d8 commit f487303Copy full SHA for f487303
.github/workflows/rust.yml
@@ -35,17 +35,23 @@ jobs:
35
pre-commit run --all-files
36
37
- name: Build
38
- run: cargo build --verbose
+ run: cargo build
39
40
- name: Run tests
41
- run: cargo test --verbose
+ run: cargo test
42
43
- name: Code coverage
44
run: |
45
cargo install cargo-llvm-cov
46
# rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu
47
cargo llvm-cov
48
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
55
# - name: Install Miri
56
# run: |
57
# rustup toolchain install nightly --component miri
0 commit comments