Skip to content

chore(ci): trim redundant node matrix and adopt .nvmrc in tests workflow#2437

Merged
joshuaellis merged 1 commit into
nextfrom
chore/ci-node-matrix-cleanup
May 21, 2026
Merged

chore(ci): trim redundant node matrix and adopt .nvmrc in tests workflow#2437
joshuaellis merged 1 commit into
nextfrom
chore/ci-node-matrix-cleanup

Conversation

@joshuaellis
Copy link
Copy Markdown
Member

Summary

Several jobs in tests.yml were running across node: ['22.x', '24.x'] even though the underlying tool (tsc, tsup, npx) produces the same result on both versions. This trims the matrix to only the jobs where dual-Node coverage actually catches something, and switches single-Node jobs to read from .nvmrc so they track the project's pinned version.

What stays on multiple Node versions

  • test-unit — Vitest + Playwright execute on Node, so this is the canary for tooling regressions on the next LTS. Keeps 22.x + 24.x.

What changed

  • build, test-types, test-published-artifact, are-the-types-wrong now use node-version-file: '.nvmrc'. No behavioural difference, single job instead of two.
  • test-e2e collapses to a single Node version, pinned to 24.x as a forward-compat canary (next-LTS signal; the unit suite already covers current LTS).
  • are-the-types-wrong previously had a node: ['22.x'] matrix wrapper but no setup-node step at all — added one using .nvmrc.

Net effect

Roughly 7 fewer jobs per PR, no loss of meaningful signal.

- Drop the Node matrix from jobs where two Node versions produce identical
  signal (build, test-types, test-e2e, test-published-artifact,
  are-the-types-wrong).
- Keep test-unit on Node 22.x and 24.x to catch Vitest/Playwright tooling
  regressions on the next LTS.
- Pin test-e2e to Node 24.x as a forward-compat canary.
- Use node-version-file '.nvmrc' for jobs that just need the project's
  Node, so the version stays consistent with local dev.
- Add a missing setup-node step to are-the-types-wrong.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-spring Building Building Preview May 21, 2026 7:43pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 21, 2026

⚠️ No Changeset found

Latest commit: 20a549a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@joshuaellis joshuaellis merged commit 452a6ae into next May 21, 2026
3 of 4 checks passed
@joshuaellis joshuaellis deleted the chore/ci-node-matrix-cleanup branch May 21, 2026 19:44
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