Add node-test action: Node project checks inside Docker #9

Merged
tim merged 1 commit from feat/node-test into main 2026-10-12 15:42:09 +00:00
Owner

New composite action node-test for Node projects. npm ci, npm audit --omit=dev, then the project's npm scripts (default: typecheck, lint, format:check, test, build) run inside a throwaway docker build on the cross-compile runner, so Node never runs on the runner or host. The build context is streamed to the daemon, so it also works when the job runs in a container.

Inputs: working-directory, node-version (default 24), scripts, audit, audit-level. Self-test against fixtures/node; README table and conventions updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98

New composite action `node-test` for Node projects. `npm ci`, `npm audit --omit=dev`, then the project's npm scripts (default: typecheck, lint, format:check, test, build) run inside a throwaway `docker build` on the `cross-compile` runner, so Node never runs on the runner or host. The build context is streamed to the daemon, so it also works when the job runs in a container. Inputs: `working-directory`, `node-version` (default 24), `scripts`, `audit`, `audit-level`. Self-test against `fixtures/node`; README table and conventions updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
Add node-test action: Node project checks inside Docker
All checks were successful
test auto-tag / test (pull_request) Successful in 3s
test docker-publish / test (pull_request) Successful in 4s
test hassfest / test (pull_request) Successful in 19s
test node-test / test (pull_request) Successful in 9s
test python-test / test (pull_request) Successful in 14s
test security-scan / test (pull_request) Successful in 27s
e2650d43c1
npm ci, npm audit for production dependencies and the project's npm
scripts run in a throwaway docker build, so Node never runs on the
runner. The build context is streamed, which also works when the job
runs inside a container.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
tim merged commit 74fdd5063f into main 2026-10-12 15:42:09 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/workflow-basics!9
No description provided.