Skip to content

ci: run the tests on pull requests - #15

Merged
rbatista191 merged 1 commit into
mainfrom
ci/pull-request-checks
Nov 27, 2026
Merged

rbatista191 merged 1 commit into
mainfrom
ci/pull-request-checks

Conversation

@rbatista191

Copy link
Copy Markdown
Contributor

What this changes

This adds .github/workflows/ci.yml. The workflow runs on each pull request and on each push to main. Before this change, the type check and the linter ran only in the publish job, and no workflow ran the tests.

The test job runs these steps:

  • pnpm install --frozen-lockfile
  • pnpm type-check && pnpm lint
  • pnpm test (this builds the package with rollup, then runs node --test)

Versions

Node.js 22 and 26. package.json has no engines field. The check names are test (22) and test (26).

Local test

On Node.js 22.23.5 and on Node.js 26.13.1, with pnpm 10:

  • pnpm install --frozen-lockfile: pass.
  • pnpm type-check: pass.
  • pnpm lint: pass.
  • pnpm test: 32 tests, 32 pass.

Branch protection

After the merge, branch protection on main will require the test checks of this workflow. The publish workflow does not change. It does not run on pull requests.

Add a CI workflow. It runs on each pull request and on each push to main. Branch protection on main will require its test checks.
@rbatista191
rbatista191 merged commit c79ef13 into main Nov 27, 2026
6 checks passed
@rbatista191
rbatista191 deleted the ci/pull-request-checks branch November 27, 2026 13:39
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