Skip to content

ci: run npm test on push and PRs via GitHub Actions - #4

Merged
vibhusharma101 merged 1 commit into
mainfrom
ci/github-actions
Jul 4, 2026
Merged

ci: run npm test on push and PRs via GitHub Actions#4
vibhusharma101 merged 1 commit into
mainfrom
ci/github-actions

Conversation

@vibhusharma101

Copy link
Copy Markdown
Owner

What

Adds .github/workflows/ci.yml — a zero-dependency CI workflow that runs on pushes and PRs to main:

  • npm test — the smoke test (validates every example, asserts self-contained output, negative-tests the validator).
  • node bin/cli.mjs --help — sanity-checks the CLI entry point resolves.

Runs across Node 18, 20, and 22 (the engine's supported range). No npm install step — there are no dependencies.

Also adds a CI status badge to the README.

Why

Now that npm test exists, CI gives every PR a green check and signals the project is maintained — a small, high-value pre-launch item.

Verification

Both CI commands pass locally on Node 22:

  • npm test → 8 passed, 0 failed
  • node bin/cli.mjs --help → prints usage

🤖 Generated with Claude Code

Add a zero-dependency CI workflow that runs the smoke test and a CLI
help smoke-check on Node 18, 20, and 22 for pushes and PRs to main.
Add a CI status badge to the README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vibhusharma101
vibhusharma101 merged commit 9d21549 into main Jul 4, 2026
3 checks passed
@vibhusharma101
vibhusharma101 deleted the ci/github-actions branch July 4, 2026 20:55
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