ci: align quality gates to reality
Clippy job now runs 'cargo check-all' (--all-targets), matching the local gate so CI can no longer pass while the local gate fails. Coverage is now informational (--summary-only): the former --fail-under-lines 100 excluded all main.rs and rewarded stub+matching-test theater; a realistic threshold plus a required mock-server E2E gate lands with Phase 1.C.6. Refs #142 #143
This commit is contained in:
1 file changed
+8
-4
@@ -36,8 +36,8 @@ jobs:
|
||||
sudo apt-get install -y libglib2.0-dev libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev build-essential curl wget file libssl-dev
|
||||
- name: Cache Cargo Dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Run Clippy Linter
|
||||
run: cargo clippy --workspace -- -D warnings
|
||||
- name: Run Clippy Linter (all targets, matches local `cargo check-all`)
|
||||
run: cargo check-all
|
||||
|
||||
test:
|
||||
name: Test Suite Execution
|
||||
@@ -68,8 +68,12 @@ jobs:
|
||||
uses: taiki-e/install-action@cargo-llvm-cov
|
||||
- name: Cache Cargo Dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Measure & Enforce Code Coverage Threshold
|
||||
run: cargo llvm-cov --workspace --ignore-filename-regex "main\.rs" --fail-under-lines 100
|
||||
# Coverage is informational for now. The former `--fail-under-lines 100`
|
||||
# gate excluded all main.rs (the integration wiring) and incentivized
|
||||
# stub+matching-test theater. A realistic threshold plus a required
|
||||
# mock-server E2E gate lands with Phase 1.C.6 (GH #143).
|
||||
- name: Measure Code Coverage (informational)
|
||||
run: cargo llvm-cov --workspace --ignore-filename-regex "main\.rs" --summary-only
|
||||
|
||||
build-matrix:
|
||||
name: Cross-Platform Build Matrix (${{ matrix.os }})
|
||||
|
||||
Reference in new issue
Block a user