From c09af435acfc9afa1aca2bdc76de07146e61b1a5 Mon Sep 17 00:00:00 2001 From: Sylvere Richard Date: Sat, 5 Oct 2024 22:01:35 +0200 Subject: [PATCH] WIP node 22 https://github.com/cypress-io/github-action/pull/1189 --- .github/workflows/format-build-frontend.yaml | 4 ++-- .github/workflows/integration-test.yml | 4 ++-- Dockerfile | 2 +- cypress.config.ts | 2 +- package-lock.json | 2 +- package.json | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/format-build-frontend.yaml b/.github/workflows/format-build-frontend.yaml index 6564cc813..53d3aaa5e 100644 --- a/.github/workflows/format-build-frontend.yaml +++ b/.github/workflows/format-build-frontend.yaml @@ -21,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '21' # Or specify any other version you want to use + node-version: '22' # Or specify any other version you want to use - name: Install Dependencies run: npm install @@ -48,7 +48,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '21' + node-version: '22' - name: Install Dependencies run: npm ci diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index dd71574f2..4ced849c2 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -54,8 +54,8 @@ jobs: uses: cypress-io/github-action@v6 with: browser: chrome - wait-on: 'http://[::1]:3000' - config: baseUrl=http://[::1]:3000 + wait-on: 'http://localhost:3000' + config: baseUrl=http://localhost:3000 - uses: actions/upload-artifact@v4 if: always() diff --git a/Dockerfile b/Dockerfile index 7dbc3795f..2e898dc89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ ARG UID=0 ARG GID=0 ######## WebUI frontend ######## -FROM --platform=$BUILDPLATFORM node:21-alpine3.20 AS build +FROM --platform=$BUILDPLATFORM node:22-alpine3.20 AS build ARG BUILD_HASH WORKDIR /app diff --git a/cypress.config.ts b/cypress.config.ts index 2682f894a..dbb538233 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'cypress'; export default defineConfig({ e2e: { - baseUrl: 'http://[::1]:8080' + baseUrl: 'http://localhost:8080' }, video: true }); diff --git a/package-lock.json b/package-lock.json index 912d58522..0f63cb6df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -70,7 +70,7 @@ "vitest": "^1.6.0" }, "engines": { - "node": ">=18.13.0 <=21.x.x", + "node": ">=18.13.0 <=22.x.x", "npm": ">=6.0.0" } }, diff --git a/package.json b/package.json index f6b400c86..122034240 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "uuid": "^9.0.1" }, "engines": { - "node": ">=18.13.0 <=21.x.x", + "node": ">=18.13.0 <=22.x.x", "npm": ">=6.0.0" } }