Skip to content

Run the vitest suite in CI - #2

Merged
PytechNo merged 1 commit into
mainfrom
claude/interesting-allen-f78ae0
Oct 16, 2026
Merged

PytechNo merged 1 commit into
mainfrom
claude/interesting-allen-f78ae0

Conversation

@PytechNo

Copy link
Copy Markdown
Owner

Summary

CI only built the Docker image and checked /, /playground, and /embed, so the ~26 vitest files under src/ never ran on a pull request. This adds a Tests workflow (.github/workflows/test.yml) that runs npm test (vitest run).

  • Same triggers as the Docker image workflow: push to main, pull_request, and workflow_dispatch, with permissions: contents: read.
  • Node 22 via actions/setup-node@v7.1.0 with cache: npm. Actions are pinned to exact versions, as in docker.yml.
  • Installs npm 11 before npm ci. The npm 10 bundled with Node 22 rejects the npm 11 lockfile (see the Dockerfile).

The job is separate from the Docker image job, so test failures and image build failures show up as separate checks.

Test plan

  • The Tests check runs the full suite on this PR

🤖 Generated with Claude Code

A new Tests workflow runs `npm test` on pushes to main, pull requests, and manual dispatch. Until now CI only built the Docker image and checked its routes, so the vitest suite never ran on a pull request. The job uses Node 22 with a cached npm download directory and installs npm 11 before `npm ci`, because the npm 10 bundled with Node 22 rejects the npm 11 lockfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PytechNo
PytechNo merged commit f149aaa into main Oct 16, 2026
2 checks passed
@PytechNo
PytechNo deleted the claude/interesting-allen-f78ae0 branch October 16, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant