Skip to content

chore: run tests on node 22, 24 and 26 in ci - #318

Merged
cryptodev-2s merged 2 commits into
chore/migrate-node-test-to-vitestfrom
chore/align-ci-with-core
Nov 17, 2026
Merged

cryptodev-2s merged 2 commits into
chore/migrate-node-test-to-vitestfrom
chore/align-ci-with-core

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Runs the test job on Node 22, 24 and 26 and adds the vitest GitHub Actions reporter.


Note

Low Risk
CI workflow-only change; no application runtime or security logic is modified.

Overview
Expands the test job in build-lint-test.yml so yarn test runs on Node 22, 24, and 26 instead of a single default version.

The job is named Test, uses a node-version matrix with fail-fast: false, and passes ${{ matrix.node-version }} into MetaMask/action-checkout-and-setup so each matrix entry uses the right runtime. Lint behavior is unchanged.

Reviewed by Cursor Bugbot for commit a2f3b53. Bugbot is set up for automated code reviews on this repo. Configure here.

@cryptodev-2s
cryptodev-2s added this pull request to stack #319 November 11, 2026 21:12
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 4e591f1 to 70b5879 Compare November 12, 2026 10:08
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 70b5879 to 5734eb7 Compare November 12, 2026 10:15
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch 2 times, most recently from 8845aa1 to 4096d93 Compare November 12, 2026 10:25
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 4096d93 to 9f5b9bd Compare November 12, 2026 10:33
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch 2 times, most recently from 504b2b9 to 36f1ffd Compare November 12, 2026 18:44
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 36f1ffd to 72e1d97 Compare November 16, 2026 10:06
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 72e1d97 to 4f85955 Compare November 16, 2026 10:11
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch 2 times, most recently from 98846fb to f292fde Compare November 16, 2026 10:34
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch 2 times, most recently from 618a9a9 to 2cdb2bb Compare November 16, 2026 11:02
@cryptodev-2s
cryptodev-2s removed this pull request from stack #319 November 16, 2026 13:59
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 2cdb2bb to 73e5899 Compare November 16, 2026 14:00
@cryptodev-2s
cryptodev-2s added this pull request to stack #329 November 16, 2026 14:00
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 73e5899 to 5c313e2 Compare November 16, 2026 14:25
@cryptodev-2s
cryptodev-2s marked this pull request as ready for review November 16, 2026 14:58
@cryptodev-2s cryptodev-2s self-assigned this Nov 16, 2026

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5c313e2. Configure here.

Comment thread .github/workflows/build-lint-test.yml Outdated
node-version: ${{ matrix.node-version }}

- run: yarn test
- run: yarn test --reporter default --reporter github-actions

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Coverage matrix cannot stay clean

Medium Severity

The new Node.js matrix runs yarn test (which enables V8 coverage) on versions 22, 24, and 26, while autoUpdate is on and the job then requires a clean working tree. V8 coverage often differs across Node versions, so a matrix job either misses the committed thresholds or rewrites vitest.config.mts and fails the dirty-tree check. All three jobs can pass only if every version reports the exact same percentages.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5c313e2. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Coverage should be identical on used Node version, we have no version specific tests.

@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 5c313e2 to ffda19f Compare November 16, 2026 15:10
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from ffda19f to b134031 Compare November 16, 2026 16:30
Comment thread .github/workflows/build-lint-test.yml Outdated
fi

test:
name: Test (Node.js ${{ matrix.node-version }})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

GitHub already includes this.

Suggested change
name: Test (Node.js ${{ matrix.node-version }})
name: Test

Comment thread .github/workflows/build-lint-test.yml Outdated
node-version: ${{ matrix.node-version }}

- run: yarn test
- run: yarn test --reporter default --reporter github-actions

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The GitHub Actions reporter is enabled by default.

Suggested change
- run: yarn test --reporter default --reporter github-actions
- run: yarn test

Comment thread .github/workflows/build-lint-test.yml Outdated
strategy:
fail-fast: false
matrix:
node-version: ['22', '24', '26']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: We use this elsewhere.

Suggested change
node-version: ['22', '24', '26']
node-version: [22.x, 24.x, 26.x]

@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch 2 times, most recently from 34ce69c to b9c2a02 Compare November 17, 2026 09:07
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch 2 times, most recently from ead0673 to 4fe41d0 Compare November 17, 2026 10:09
@cryptodev-2s
cryptodev-2s requested a review from Mrtenz November 17, 2026 10:12
@cryptodev-2s
cryptodev-2s force-pushed the chore/align-ci-with-core branch from 4fe41d0 to a2f3b53 Compare November 17, 2026 10:27
@cryptodev-2s
cryptodev-2s merged commit 0334b3b into main Nov 17, 2026
21 checks passed
@cryptodev-2s
cryptodev-2s deleted the chore/align-ci-with-core branch November 17, 2026 12:10
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