Skip to content

Commit 21c197a

Browse files
committed
test: enforce MCP quality and coverage
1 parent d4ec557 commit 21c197a

3 files changed

Lines changed: 460 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,20 @@ jobs:
4646
- name: Run Clippy
4747
run: cargo clippy --all-targets --all-features -- -D warnings
4848

49-
- name: Run offline tests
49+
- name: Run offline tests on MSRV
50+
if: matrix.rust == '1.88.0'
5051
run: cargo test --all-targets --locked
5152

53+
- name: Install coverage tooling
54+
if: matrix.rust == 'stable'
55+
run: |
56+
rustup component add llvm-tools-preview
57+
cargo install cargo-llvm-cov --version 0.9.0 --locked
58+
59+
- name: Run offline tests with coverage
60+
if: matrix.rust == 'stable'
61+
run: cargo llvm-cov --all-targets --all-features --locked --fail-under-lines 93
62+
5263
- name: Build release binary
5364
run: cargo build --release --locked
5465

0 commit comments

Comments
 (0)