Skip to content

Add GitHub Actions CI for PRs and align test script with node:test#3

Merged
keith-hall merged 1 commit into
cache_ttlfrom
copilot/add-github-workflow-ci
Jun 7, 2026
Merged

Add GitHub Actions CI for PRs and align test script with node:test#3
keith-hall merged 1 commit into
cache_ttlfrom
copilot/add-github-workflow-ci

Conversation

Copy link
Copy Markdown

Copilot AI commented Jun 7, 2026

This introduces a GitHub Actions CI workflow so pull requests are gated by the existing test suite before merge. It also aligns the repository test command with the actual test file layout so the same command works locally and in CI.

  • CI workflow

    • Adds .github/workflows/ci.yml
    • Runs on pull requests, pushes to master, and manual dispatch
    • Executes the test suite across Node.js 20, 22, and 24
    • Uses npm dependency caching via actions/setup-node
  • Test command

    • Updates npm test to target the repository's actual test files
    • Replaces the directory-based invocation that fails under current Node.js behavior with an explicit glob
{
  "scripts": {
    "test": "node --test test/*.test.js"
  }
}

@keith-hall keith-hall marked this pull request as ready for review June 7, 2026 10:01
@keith-hall keith-hall merged commit a22ee0c into cache_ttl Jun 7, 2026
3 checks 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.

2 participants