Repository navigation
ci: GitHub Actions tests + Codecov coverage - #6
Merged
Merged
Conversation
…ecov - New ci.yml on push to main and PRs: Node 24, typecheck, test:coverage, Codecov upload via OIDC (no CODECOV_TOKEN secret). Uses the latest actions/checkout@v7, actions/setup-node@v7, codecov/codecov-action@v7. - Add test:coverage script producing lcov.info (ignored by git). - Set "type": "module" so Node stops reparsing the .ts files and drops the MODULE_TYPELESS_PACKAGE_JSON warning; wrangler dry-run unaffected. - CI and Codecov badges in README; CLAUDE.md mentions CI.
7a6163
force-pushed
the
ci/github-actions-codecov
branch
from
October 21, 2026 08:30
bf331bc to
1831840
Compare
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
Without a lockfile every install resolved the newest versions in range, so audited, tested and deployed dependencies could differ. CI now installs exactly the locked tree with npm ci (cached) and fails on any high or critical npm audit finding.
TypeScript 7 (native compiler) no longer auto-includes every @types package: "types" now defaults to [], so list "node" explicitly for node:test, node:assert and import.meta.dirname in the tests.
4 of 5 tasks
build: upgrade TypeScript to 7
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.
Why
The project had no CI. Tests only ran when someone remembered to run them locally, and nobody could see the coverage.
What changed
.github/workflows/ci.yml, triggered by pushes tomainand by PRs. On Node 24 (current LTS) it runs:npm install(no lockfile is committed, sonpm cican't be used)npm run typechecknpm run test:coveragelcov.infoto Codecovid-token: write), so there is noCODECOV_TOKENsecret to manage.actions/checkout@v7,actions/setup-node@v7,codecov/codecov-action@v7.test:coveragescript, built on Node's built-in--experimental-test-coverage, which writeslcov.info. The file is added to.gitignore."type": "module"inpackage.jsonmakes Node stop reparsing the.tsfiles and removes theMODULE_TYPELESS_PACKAGE_JSONwarning.wrangler deploy --dry-runis unaffected.LICENSEyear from chore: add MIT license #5: 2025 → 2026.CLAUDE.mdmentions CI.Current coverage: 81% of lines.
Testing
npm run test:coveragelocally: 24 passed,lcov.infoproducednpm run typecheckpasses🤖 Generated with Claude Code