Skip to content

Comments

Update CI to test against Node 20, 22, 24#129

Merged
JohnONolan merged 1 commit intoTryGhost:mainfrom
vitrixbot:update-node-versions
Feb 9, 2026
Merged

Update CI to test against Node 20, 22, 24#129
JohnONolan merged 1 commit intoTryGhost:mainfrom
vitrixbot:update-node-versions

Conversation

@vitrixbot
Copy link
Contributor

@vitrixbot vitrixbot commented Feb 9, 2026

Replaces the single Node 18 target with a test matrix covering Node 20, 22, and 24.

Node 18 reached EOL on 2025-04-30.


Note

Low Risk
CI-only change that expands test coverage across Node versions; no production code paths are affected.

Overview
Updates the GitHub Actions Test workflow to run the lint job against a Node.js version matrix (20/22/24) instead of a single pinned runtime, naming each job run by Node version.

Written by Cursor Bugbot for commit 44def70. This will update automatically on new commits. Configure here.

@coderabbitai
Copy link

coderabbitai bot commented Feb 9, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

The pull request modifies the GitHub Actions workflow configuration to introduce a matrix strategy for the lint job. The change adds Node.js versions 20, 22, and 24 to be tested in parallel, replacing the previously fixed Node.js version 18. The workflow name is updated to dynamically reflect the current matrix node value. All existing workflow steps (checkout, setup-node, yarn, yarn lint) remain unchanged in logic and will execute for each matrix entry.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@JohnONolan JohnONolan merged commit a691a27 into TryGhost:main Feb 9, 2026
4 of 5 checks passed
Copy link

@cursor cursor bot left a comment

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 and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
strategy:
matrix:
node: [20, 22, 24]
Copy link

Choose a reason for hiding this comment

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

Node matrix applied to lint-only job, no tests

Low Severity

The strategy matrix runs yarn lint three times (once per Node version), but ESLint results are Node-version-independent, making the extra runs redundant. The PR's stated goal is to "test against Node 20, 22, 24," yet there is no test script in package.json and no yarn test step in the workflow — so nothing actually validates runtime behavior across Node versions. The matrix triples CI cost with no added coverage.

Fix in Cursor Fix in Web

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