From cf6ad71fffb2ffdcfc793ad2f75db0ef8167cc9c Mon Sep 17 00:00:00 2001 From: lucaronin Date: Tue, 28 Apr 2026 04:03:49 +0200 Subject: [PATCH] ci: de-duplicate coverage-backed test lane --- .github/workflows/ci.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 950eca0d..35d6e6f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,22 +65,18 @@ jobs: - name: Vite build check run: pnpm build - # ── 1. Tests ────────────────────────────────────────────────────────── - - name: Run frontend tests - run: pnpm test - + # ── 1. Coverage-backed tests ────────────────────────────────────────── + # The coverage commands run the same frontend and Rust test suites, so keep + # them as the canonical test lane instead of running every suite twice. - name: Bundle MCP server resources (required by Tauri build) run: node scripts/bundle-mcp-server.mjs - - name: Run Rust tests - run: cargo test --manifest-path=src-tauri/Cargo.toml - - # ── 2. Coverage (enforced — fails build if thresholds not met) ──────── - - name: Frontend coverage (≥70% lines/functions/branches/statements) + # ── 2. Tests + coverage (enforced — fails build if thresholds not met) ─ + - name: Frontend tests + coverage (≥70% lines/functions/branches/statements) run: pnpm test:coverage # Thresholds configured in vite.config.ts — exits non-zero if coverage drops - - name: Rust coverage (≥85% lines) + - name: Rust tests + coverage (≥85% lines) run: | cargo llvm-cov \ --manifest-path src-tauri/Cargo.toml \