ci: add GitHub Actions workflow with coverage reporting - #3
Merged
Merged
Conversation
Adds CI pipeline (typecheck, build, test, coverage upload to Codecov) and wires build/coverage badges into the README. Coverage thresholds in vitest.config.ts are disabled until calibrated against a real run.
Tokenless upload is no longer supported by Codecov, so the upload step failed in CI (harmlessly, due to fail_ci_if_error: false). Keep coverage running locally in the pipeline for visibility, but drop the badge and upload step until a real token is set up.
Comment on lines
+11
to
+24
| 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 |
Enable thresholds using PR #3's measured coverage (93.02% stmts, 90.65% branch, 96.62% funcs, 93.02% lines) minus a safety margin.
Contributor
Author
|
reviewed |
1 similar comment
Contributor
|
reviewed |
dopenserfang
approved these changes
Sep 1, 2026
notandrewyang
self-requested a review
September 1, 2026 10:12
notandrewyang
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/ci.yml: typecheck → build → test → coverage, uploads lcov to Codecovbuildandcoveragebadges into README (replaces nothing — these are new)vitest.config.tsuntil calibrated against a real CI runTest plan
thresholdsin vitest.config.ts against the real coverage number, then re-enable