diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0dd0b09 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 8.14.1 + - uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'pnpm' + - run: pnpm install --frozen-lockfile + - run: pnpm run typecheck + - run: pnpm run build + - run: pnpm run coverage diff --git a/README.md b/README.md index 6c68274..ddeeeff 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@
+
diff --git a/vitest.config.ts b/vitest.config.ts
index 0afa1c4..9260c70 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -20,14 +20,12 @@ export default defineConfig({
"src/**/*.d.ts",
"src/bin/**", // thin CLI entrypoints
],
- // Provisional floor. These thresholds have NOT been run yet (the offline
- // registry blocks installing @vitest/coverage-v8); calibrate them against
- // the first real `pnpm run coverage` report and adjust as needed.
+ // Calibrated against the CI run in PR #3 (93.02% stmts / 90.65% branch / 96.62% funcs / 93.02% lines).
thresholds: {
- lines: 80,
- functions: 80,
- statements: 80,
- branches: 75,
+ lines: 85,
+ functions: 90,
+ statements: 85,
+ branches: 85,
},
},
},