From e5dfd0017fb448932a1f3912e8d3bb3707daf1a2 Mon Sep 17 00:00:00 2001 From: Calvin Remsburg Date: Sat, 14 Mar 2026 05:13:20 -0500 Subject: [PATCH] ci: add coverage threshold enforcement - vitest thresholds: 90% lines/statements, 95% functions, 80% branches - CI test job now runs pnpm test:coverage instead of pnpm test Closes #172 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 2 +- vitest.config.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f1ebdf..0bf6501 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: cache: pnpm - run: pnpm install --frozen-lockfile - - run: pnpm test + - run: pnpm test:coverage docs-build: runs-on: ubuntu-latest diff --git a/vitest.config.ts b/vitest.config.ts index 4745854..e7f35ec 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -10,6 +10,12 @@ export default defineConfig({ provider: 'v8', include: ['src/**/*.ts'], exclude: ['src/cli/**', 'src/index.ts', 'src/**/types.ts'], + thresholds: { + lines: 90, + functions: 95, + branches: 80, + statements: 90, + }, }, }, });