Skip to content

Commit

Permalink
chore(ci): Start testing under Node.js 20 (16.x was removed) (#7963)
Browse files Browse the repository at this point in the history
Node.js 16 is deprecated, starting from 0.35. It's time to remove it from CI, because we don't provide any guaranties for supporting it.
  • Loading branch information
ovr authored Mar 18, 2024
1 parent 6b4a1cf commit ee68139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
fail-fast: false

steps:
Expand Down
5 changes: 3 additions & 2 deletions packages/cubejs-api-gateway/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ describe('API Gateway', () => {
.set('Authorization', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M')
.expect(400);

expect(res.body && res.body.error).toStrictEqual(
'Unable to decode query param as JSON, error: Unexpected token N in JSON at position 0'
expect(res.body && res.body.error).toContain(
// different JSON.parse errors between Node.js versions
'Unable to decode query param as JSON, error: Unexpected token'
);
});

Expand Down

0 comments on commit ee68139

Please sign in to comment.