From e61682b949c3c6dcd1034d72c0da7e32c3c89862 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 11 Jan 2025 14:39:52 +0100 Subject: [PATCH] ci: switch to current node LTS version MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/ci.yml | 24 ++++++++++++------------ package.json | 2 +- ui/web/package.json | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ea3ca2a..951f1be5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,13 +58,13 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Dependency Review - if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} uses: actions/dependency-review-action@v4 with: base-ref: ${{ github.ref_name }} head-ref: ${{ github.sha }} - name: Pull Request Dependency Review - if: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} uses: actions/dependency-review-action@v4 - uses: pnpm/action-setup@v4 - name: Setup node ${{ matrix.node }} @@ -75,20 +75,20 @@ jobs: - name: pnpm install run: pnpm install --ignore-scripts --frozen-lockfile - name: pnpm audit - if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} run: pnpm audit --prod - name: pnpm lint - if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} run: pnpm lint - name: pnpm build run: pnpm build - name: pnpm test run: pnpm test - name: pnpm coverage - if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} run: pnpm coverage - name: SonarCloud Scan - if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} uses: sonarsource/sonarqube-scan-action@v4.2.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -109,13 +109,13 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Dependency Review - if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} uses: actions/dependency-review-action@v4 with: base-ref: ${{ github.ref_name }} head-ref: ${{ github.sha }} - name: Pull Request Dependency Review - if: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} uses: actions/dependency-review-action@v4 - uses: pnpm/action-setup@v4 - name: Setup node ${{ matrix.node }} @@ -126,20 +126,20 @@ jobs: - name: pnpm install run: pnpm install --ignore-scripts --frozen-lockfile - name: pnpm audit - if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} run: pnpm audit --prod - name: pnpm lint - if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} run: pnpm lint - name: pnpm build run: pnpm build - name: pnpm test run: pnpm test - name: pnpm coverage - if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} run: pnpm coverage - name: SonarCloud Scan - if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} + if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '22.x' }} uses: sonarsource/sonarqube-scan-action@v4.2.1 with: projectBaseDir: ui/web diff --git a/package.json b/package.json index b7349c65..658255af 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "pnpm": ">=9.0.0" }, "volta": { - "node": "22.12.0", + "node": "22.13.0", "pnpm": "9.15.3" }, "packageManager": "pnpm@9.15.3", diff --git a/ui/web/package.json b/ui/web/package.json index 8d0a1fa0..cfb0ceb4 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -8,7 +8,7 @@ "pnpm": ">=9.0.0" }, "volta": { - "node": "22.12.0", + "node": "22.13.0", "pnpm": "9.15.3" }, "packageManager": "pnpm@9.15.3", -- 2.43.0