diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 923b0a11..ec9eebd9 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -42,7 +42,7 @@ jobs: npm ci npm run test:cov dir: frontend - node_version: "18" + node_version: "20" sonar_args: > -Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts -Dsonar.organization=bcgov-sonarcloud diff --git a/docker-compose.yml b/docker-compose.yml index 776b7c95..b846c2c4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: REACT_APP_USER_POOLS_ID: ca-central-1_t2HSZBHurS REACT_APP_USER_POOLS_WEB_CLIENT_ID: 37798cpec8d4u1a2njt02nonp7 REACT_APP_AWS_DOMAIN: prod-fam-user-pool-domain.auth.ca-central-1.amazoncognito.com - image: node:18-bullseye + image: node:20-bullseye ports: ["3000:3000"] volumes: ["./frontend:/app", "/app/node_modules"] restart: always diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 4f7d1554..bbcb3acb 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-slim AS build +FROM node:20-slim AS build # Build static files WORKDIR /app diff --git a/frontend/package-lock.json b/frontend/package-lock.json index a367410e..ab82bd4c 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -15,7 +15,7 @@ "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.0.0", "@types/jest": "^29.5.4", - "@types/node": "^18.0.0", + "@types/node": "^20.0.0", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", "aws-amplify": "^5.3.10", @@ -11113,9 +11113,9 @@ "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" }, "node_modules/@types/node": { - "version": "18.17.12", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.12.tgz", - "integrity": "sha512-d6xjC9fJ/nSnfDeU0AMDsaJyb1iHsqCSOdi84w4u+SlN/UgQdY5tRhpMzaFYsI4mnpvgTivEaQd0yOUhAtOnEQ==" + "version": "20.5.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.7.tgz", + "integrity": "sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==" }, "node_modules/@types/node-fetch": { "version": "2.6.4", diff --git a/frontend/package.json b/frontend/package.json index 1e96055d..cd2e758e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,7 +10,7 @@ "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.0.0", "@types/jest": "^29.5.4", - "@types/node": "^18.0.0", + "@types/node": "^20.0.0", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", "aws-amplify": "^5.3.10",