Skip to content

Commit

Permalink
Upgrade to Node.js 22 LTS (#861)
Browse files Browse the repository at this point in the history
Co-authored-by: Joep <145749778+jschuurk-kr@users.noreply.github.com>
  • Loading branch information
praseodym and jschuurk-kr authored Jan 16, 2025
1 parent 62d5deb commit 171327a
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
working-directory: ./frontend
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
- name: Check formatting
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand All @@ -151,7 +151,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build with MSW
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
working-directory: ./frontend
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:

frontend:
depends_on: [backend]
image: node:20
image: node:22
ports:
- 3000:3000
volumes:
Expand Down
2 changes: 1 addition & 1 deletion frontend/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v22
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Prerequisites

- [Node](https://nodejs.org) v20
- [Node](https://nodejs.org) v22

### Building

Expand Down
19 changes: 10 additions & 9 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.1",
"type": "module",
"engines": {
"node": ">=20.11.1"
"node": ">=22"
},
"scripts": {
"dev": "cross-env API_MODE=mock vite",
Expand Down Expand Up @@ -40,7 +40,7 @@
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
"@types/node": "^20.17.12",
"@types/node": "^22.10.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.19.1",
Expand Down
4 changes: 2 additions & 2 deletions frontend/playwright.d2d.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ const config: PlaywrightTestConfig = defineConfig({
testMatch: /\.e2e\.ts/,
use: {
...commonConfig.use,
baseURL: "http://localhost:8081",
baseURL: "http://127.0.0.1:8081",
},
webServer: [
{
command: returnWebserverCommand(),
port: 8081,
url: "http://127.0.0.1:8081",
},
],
});
Expand Down

0 comments on commit 171327a

Please sign in to comment.