Skip to content

ci: add CI workflow for PR checks#1122

Merged
mtorp merged 3 commits intov1.xfrom
ci/add-pr-test-workflow
Mar 19, 2026
Merged

ci: add CI workflow for PR checks#1122
mtorp merged 3 commits intov1.xfrom
ci/add-pr-test-workflow

Conversation

@mtorp
Copy link
Contributor

@mtorp mtorp commented Mar 19, 2026

Summary

  • Add a new GitHub Actions CI workflow that runs on every push to PRs targeting main or v1.x
  • Runs lint, type checking, and unit tests across Node.js 20, 22, and 24
  • Includes minor test fixture updates

Test plan

  • Verify the workflow triggers on PR pushes
  • Confirm lint, typecheck, and test jobs run successfully
  • Validate matrix strategy runs across all Node.js versions

Note

Low Risk
Low risk: adds CI automation and updates test expectations for existing CLI flags/return shapes, without changing runtime behavior.

Overview
Adds a new GitHub Actions CI workflow that runs on pushes and PRs to main/v1.x, executing lint and typecheck on Node 22 and running build + unit tests across a Node 20/22/24 matrix.

Updates test snapshots/expectations to reflect new CLI help flags (--disable-external-tool-checks and --reach-disable-external-tool-checks) and a result field rename from fixed to fixedAll in coanaFix tests.

Written by Cursor Bugbot for commit 240823a. Configure here.

mtorp added 3 commits March 19, 2026 11:25
Add a GitHub Actions workflow that runs lint, type checking, and unit
tests on every push to a PR targeting main or v1.x. Includes test
fixture updates.
The separate build + test:unit steps caused snapshot mismatches because
pnpm build does not set VITEST=1, which gets inlined at build time.
Using test-ci runs test:prepare (which builds with .env.test setting
VITEST=1) followed by test:unit, matching local test behavior.
The test was failing on CI because git's default branch name may not
be 'main'. Using --initial-branch main ensures consistent behavior.
@mtorp mtorp requested a review from BarrensZeppelin March 19, 2026 12:09
@mtorp mtorp enabled auto-merge (squash) March 19, 2026 12:10
@mtorp mtorp merged commit 51d1eb7 into v1.x Mar 19, 2026
12 checks passed
@mtorp mtorp deleted the ci/add-pr-test-workflow branch March 19, 2026 12:11
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