From 1308e3db83415c8a275c36718bfcdd9a68fe88a7 Mon Sep 17 00:00:00 2001 From: frizat Date: Sun, 4 Oct 2026 22:41:46 -0500 Subject: [PATCH] Remove Codecov upload; gate frontend coverage in-repo Codecov's expired certificate (codecov/codecov-action#1975) failed the required Frontend check on every run since 2026-10-05 00:03 UTC, blocking all merges. It was report-only and unused. Frontend coverage is now enforced by Vitest thresholds instead (backend already gated at 30%). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DAWjtJgXaMYbzZXYJjTEYs --- .github/workflows/ci.yml | 7 ------- Client.React/vite.config.ts | 3 +++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d9bc4c3..63126844 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,13 +104,6 @@ jobs: # instead so tests run once per PR, not twice. run: npm run test -- --run --coverage - - name: Upload coverage - uses: codecov/codecov-action@v4 - with: - files: ./Client.React/coverage/coverage-final.json - flags: frontend - fail_ci_if_error: false - - name: Build run: npm run build env: diff --git a/Client.React/vite.config.ts b/Client.React/vite.config.ts index 6f47ec22..8ef34a43 100644 --- a/Client.React/vite.config.ts +++ b/Client.React/vite.config.ts @@ -34,6 +34,9 @@ export default defineConfig({ coverage: { provider: 'v8', reporter: ['text', 'json', 'html', 'lcov'], + // CI gate (npm run test -- --run --coverage): fails the build if frontend coverage drops. + // Set a few points under the 2026-10-04 baseline (79.8/80.5/73.9/82.3) — raise as it grows. + thresholds: { statements: 75, branches: 75, functions: 70, lines: 78 }, exclude: [ 'node_modules/', 'src/setupTests.ts',