Repository navigation
chore: run tests on node 22, 24 and 26 in ci - #318
Conversation
4e591f1 to
70b5879
Compare
70b5879 to
5734eb7
Compare
8845aa1 to
4096d93
Compare
4096d93 to
9f5b9bd
Compare
504b2b9 to
36f1ffd
Compare
36f1ffd to
72e1d97
Compare
72e1d97 to
4f85955
Compare
98846fb to
f292fde
Compare
618a9a9 to
2cdb2bb
Compare
2cdb2bb to
73e5899
Compare
73e5899 to
5c313e2
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.
| node-version: ${{ matrix.node-version }} | ||
|
|
||
| - run: yarn test | ||
| - run: yarn test --reporter default --reporter github-actions |
There was a problem hiding this comment.
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)
Reviewed by Cursor Bugbot for commit 5c313e2. Configure here.
There was a problem hiding this comment.
Coverage should be identical on used Node version, we have no version specific tests.
5c313e2 to
ffda19f
Compare
ffda19f to
b134031
Compare
| fi | ||
|
|
||
| test: | ||
| name: Test (Node.js ${{ matrix.node-version }}) |
There was a problem hiding this comment.
GitHub already includes this.
| name: Test (Node.js ${{ matrix.node-version }}) | |
| name: Test |
| node-version: ${{ matrix.node-version }} | ||
|
|
||
| - run: yarn test | ||
| - run: yarn test --reporter default --reporter github-actions |
There was a problem hiding this comment.
The GitHub Actions reporter is enabled by default.
| - run: yarn test --reporter default --reporter github-actions | |
| - run: yarn test |
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| node-version: ['22', '24', '26'] |
There was a problem hiding this comment.
Nit: We use this elsewhere.
| node-version: ['22', '24', '26'] | |
| node-version: [22.x, 24.x, 26.x] |
34ce69c to
b9c2a02
Compare
ead0673 to
4fe41d0
Compare
4fe41d0 to
a2f3b53
Compare


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
testjob inbuild-lint-test.ymlsoyarn testruns on Node 22, 24, and 26 instead of a single default version.The job is named Test, uses a
node-versionmatrix withfail-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.