Repository navigation
Add test workflow and fix lockfile for npm ci - #128
Conversation
Run npm ci, build and tests on every pull request and on pushes to main. Regenerate package-lock.json: commit 8adef3a (vitest 4) bumped esbuild to 0.28.0 but dropped its 26 @esbuild/* platform entries, so npm ci has failed on main since April. Only those entries are added; no versions change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Low risk] The new workflow runs only on pull_request and pushes to main, with contents: read and dummy credentials, so it cannot reach secrets or publish. The lockfile hunks only add @esbuild platform entries at the already-locked 0.28.0, and the action pins (checkout and setup-node at v7) serve only this new test job, so a failure stays inside it. SummaryAdds a PR test workflow and restores missing esbuild lockfile entries The new What's good
Review context · 0/1 skills · 0/5 commands
Reviews (2) · Last reviewed commit: "Smoke-test built package in CI" · claude-sonnet-5-5 |
Why?
Nothing runs the tests or the build on pull requests. The only check is the Kritika review, so Renovate PRs and feature PRs are merged untested.
Because nothing ran
npm ci, nobody noticed that it has failed onmainsince April: commit 8adef3a ("Update vitest", #100) upgraded vitest to v4, which moved esbuild to 0.28.0 as a side effect; the lockfile lost esbuild's 26@esbuild/*platform entries in the process. Publishing still works because the publish workflow usesnpm install.Changes
.github/workflows/test.yaml: on every pull request and on pushes tomain, runsnpm ci,npm run buildandnpm test. It uses a dummyAPI_KEYandVERIFIED_EMAIL, since tests replay tapes and never call the real API. No secrets are exposed to Renovate PRs.package-lock.json: regenerated withnpm install --package-lock-only. It only adds the 26 missing@esbuild/*entries; no versions change and nothing is removed.npm cinow succeeds..github/workflows/test.yaml: after the build, loadsdist/index.js(CJS) anddist/index.mjs(ESM) and creates a client, so a broken bundle fails CI. Tests only importsrc/.After merge
Add
test(the job name) as a required status check onmainso a failing run blocks merging.🤖 Generated with Claude Code