-
-
Notifications
You must be signed in to change notification settings - Fork 600
ci: Run CI with specific Parse Server versions #2539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: alpha
Are you sure you want to change the base?
Changes from all commits
09bef78
be8607e
c9c63ee
a864fa7
74a0d24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,27 +77,43 @@ jobs: | |
| strategy: | ||
| matrix: | ||
| include: | ||
| - name: Node 20 | ||
| - name: Node 20, Parse Server 8 | ||
| NODE_VERSION: 20.19.0 | ||
| - name: Node 22 | ||
| PARSE_SERVER_VERSION: 8 | ||
| - name: Node 22, Parse Server 8 | ||
| NODE_VERSION: 22.12.0 | ||
| - name: Node 24 | ||
| PARSE_SERVER_VERSION: 8 | ||
| - name: Node 24, Parse Server 8 | ||
| NODE_VERSION: 24.1.0 | ||
| PARSE_SERVER_VERSION: 8 | ||
| - name: Node 20, Parse Server 9 | ||
| NODE_VERSION: 20.19.0 | ||
| PARSE_SERVER_VERSION: 9 | ||
| - name: Node 22, Parse Server 9 | ||
| NODE_VERSION: 22.12.0 | ||
| PARSE_SERVER_VERSION: 9 | ||
| - name: Node 24, Parse Server 9 | ||
| NODE_VERSION: 24.1.0 | ||
| PARSE_SERVER_VERSION: 9 | ||
| fail-fast: false | ||
| name: Build - ${{ matrix.name }} | ||
| steps: | ||
| - name: Fix usage of insecure GitHub protocol | ||
| run: sudo git config --system url."https://github".insteadOf "git://github" | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js | ||
| - name: Use Node.js ${{ matrix.NODE_VERSION }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.NODE_VERSION }} | ||
| cache: npm | ||
| - run: npm ci | ||
| # Run unit tests | ||
| - run: npm test -- --maxWorkers=4 | ||
| # Run integration tests | ||
| - run: npm run test:mongodb | ||
| - name: Install Parse Server ${{ matrix.PARSE_SERVER_VERSION }} | ||
| run: npm i -DE parse-server@${{ matrix.PARSE_SERVER_VERSION }} | ||
| - name: Install dependencies | ||
| run: npm ci | ||
|
Comment on lines
+109
to
+112
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The clean pattern for this use case is to run ♻️ Proposed fix- - name: Install Parse Server ${{ matrix.PARSE_SERVER_VERSION }}
- run: npm i -DE parse-server@${{ matrix.PARSE_SERVER_VERSION }}
- - name: Install dependencies
- run: npm ci
+ - name: Install dependencies
+ run: npm ci
+ - name: Install Parse Server ${{ matrix.PARSE_SERVER_VERSION }}
+ run: npm install --no-save parse-server@${{ matrix.PARSE_SERVER_VERSION }}This also removes the unintended side-effect of mutating 🤖 Prompt for AI Agents |
||
| - name: Run unit tests | ||
| run: npm test -- --maxWorkers=4 | ||
| - name: Run integration tests | ||
| run: npm run test:mongodb | ||
| env: | ||
| CI: true | ||
|
Comment on lines
+113
to
118
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
♻️ Proposed fix timeout-minutes: 30
+ env:
+ CI: true
strategy:
...
steps:
...
- - name: Run integration tests
- run: npm run test:mongodb
- env:
- CI: true
+ - name: Run integration tests
+ run: npm run test:mongodb🤖 Prompt for AI Agents |
||
| - name: Upload code coverage | ||
|
|
@@ -106,6 +122,8 @@ jobs: | |
| # Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129 | ||
| fail_ci_if_error: false | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| env: | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: parse-community/Parse-SDK-JS
Length of output: 367
Node 24.1.0 violates Parse Server's engines constraint (requires >=24.11.0)
Both Parse Server v8 (8.6.2) and v9 (9.3.0-alpha.6) explicitly require Node.js 24
>=24.11.0 <25.0.0. Pinning Node 24.1.0 will causenpm install/npm cito fail with an engine error, preventing the workflow from running — consistent with the PR author's report that this step currently fails.Update the pinned version to 24.11.0 or later:
🔧 Proposed fix
🤖 Prompt for AI Agents