Skip to content

ci: add GitHub Actions workflow for tests and typecheck + migrate to Node.js 24 - #2

Merged
sebastienthibaud merged 3 commits into
mainfrom
feat/add-ci
Apr 27, 2026
Merged

ci: add GitHub Actions workflow for tests and typecheck + migrate to Node.js 24#2
sebastienthibaud merged 3 commits into
mainfrom
feat/add-ci

Conversation

@sebastienthibaud

@sebastienthibaud sebastienthibaud commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Adds a GitHub Actions CI workflow and aligns the project’s Node/TypeScript execution and documentation around Node.js 24 (including updated test invocation and contributor requirements).

Changes:

  • Add a GitHub Actions CI workflow running typecheck and test on PRs and main.
  • Update test command/docs to run TypeScript directly via node (and bump Node engine + @types/node to v24).
  • Add .nvmrc and update documentation/README to reflect CI + new Node baseline.

sebastienthibaud and others added 2 commits April 27, 2026 17:42
Pin the runtime to Node 24 via .nvmrc, bump engines to >=24, and
update @types/node to 24.12.2 to match.

Remove the --experimental-strip-types flag from npm test and from
documentation: native TypeScript execution is enabled by default
since Node 23.6.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Run npm run typecheck and npm test on push and pull_request to main,
reading the Node version from .nvmrc to keep CI aligned with local dev.

Restrict GITHUB_TOKEN to contents:read (least privilege) and cancel
obsolete PR runs via a concurrency group, while preserving full history
on main.

Add a CI status badge to README.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sebastienthibaud sebastienthibaud changed the title Feat/add ci ci: add GitHub Actions workflow for tests and typecheck + migrate to Node.js 24 Apr 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions CI workflow and aligns the project’s Node/TypeScript execution and documentation around Node.js 24 (including updated test invocation and contributor requirements).

Changes:

  • Add a GitHub Actions CI workflow running typecheck and test on PRs and main.
  • Update test command/docs to run TypeScript directly via node (and bump Node engine + @types/node to v24).
  • Add .nvmrc and update documentation/README to reflect CI + new Node baseline.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/run.ts Updates the documented test invocation to node tests/run.ts.
package.json Updates test script, bumps Node engine requirement to >=24, and updates @types/node.
package-lock.json Lockfile updates reflecting the @types/node bump (and transitive updates).
doc/contribution.md Updates contributor requirements to Node 24 and new @types/node version.
commands/speckit.analytics.purge.md Updates purge command examples to remove experimental TS flags.
README.md Adds CI badge pointing to the new workflow.
.nvmrc Pins local development Node major version to 24.
.github/workflows/ci.yml Adds CI workflow for install, typecheck, and tests using .nvmrc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread commands/speckit.analytics.purge.md Outdated
Comment thread commands/speckit.analytics.purge.md Outdated
Node's ESM resolver treats specifiers that don't start with ./ , ../ ,
/ , or a URL scheme as bare specifiers (package names). The purge
command examples used import('.specify/...') which fails with
ERR_INVALID_MODULE_SPECIFIER.

Prefix the paths with ./ so the dynamic import resolves as relative
from the project root.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sebastienthibaud
sebastienthibaud merged commit 171f2f8 into main Apr 27, 2026
1 check passed
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.

3 participants