Skip to content

Conversation

@hieu-w
Copy link
Contributor

@hieu-w hieu-w commented Jan 30, 2026

Motivation and Context

Jira Link:

Description

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

Note

Low Risk
Low-risk CI/config-only changes, but Node version expectations may drift because CI runs Node 22 while .nvmrc now requests >=24.

Overview
Adds CI test automation via GitHub Actions. Introduces two workflows: ci.yml runs npm run test on non-master pushes and master.yml runs the same suite on master, including Playwright dependency/browser installation.

Updates local Node version hint. Changes .nvmrc from >=18.x to >=24.x (while the workflows use Node 22.x).

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

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 2 potential issues.

@@ -1 +1 @@
>=18.x No newline at end of file
>=24.x No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Node.js version mismatch between .nvmrc and CI/package.json

Medium Severity

The .nvmrc file requires >=24.x but the CI workflows test with Node.js 22.x, and package.json engines specify >=22.x. This version mismatch means developers using nvm locally will use Node.js 24+, but CI only validates against Node.js 22. Code working on Node.js 24 could break on 22, and CI wouldn't catch it. The .nvmrc, package.json engines, and CI matrix versions need to be aligned.

Additional Locations (2)

Fix in Cursor Fix in Web

run: npx playwright install

- name: Run tests
run: npm run test
Copy link

Choose a reason for hiding this comment

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

Duplicated workflow files could be consolidated

Low Severity

The ci.yml and master.yml workflow files are nearly identical (30+ lines duplicated), differing only in their branch trigger conditions. This could be a single workflow file using on: push without branch restrictions, which would run on all branches including master. The duplication increases maintenance burden and risks inconsistent updates if one file is modified without the other.

Additional Locations (1)

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