diff --git a/.github/workflows/check-pull-request.yml b/.github/workflows/check-pull-request.yml index caf75e50..5f1fcd43 100644 --- a/.github/workflows/check-pull-request.yml +++ b/.github/workflows/check-pull-request.yml @@ -20,10 +20,10 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Cache dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 id: npm-install-cache with: enableCrossOsArchive: true @@ -31,14 +31,14 @@ jobs: path: node_modules - name: Cache build - uses: actions/cache@v4 + uses: actions/cache@v5 with: enableCrossOsArchive: true key: npm-build-${{ runner.os }}-${{ github.sha }} path: .server - name: Setup Node.js - uses: actions/setup-node@v5 + uses: actions/setup-node@v6 with: node-version-file: .nvmrc @@ -85,10 +85,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Restore dependencies - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 with: enableCrossOsArchive: true fail-on-cache-miss: true @@ -97,14 +97,14 @@ jobs: - name: Cache task if: ${{ matrix.task.cache }} - uses: actions/cache@v4 + uses: actions/cache@v5 with: enableCrossOsArchive: true key: ${{ matrix.task.name }}-${{ runner.os }} path: ${{ matrix.task.cache }} - name: Setup Node.js - uses: actions/setup-node@v5 + uses: actions/setup-node@v6 with: node-version-file: .nvmrc @@ -128,10 +128,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Restore dependencies - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 with: enableCrossOsArchive: true fail-on-cache-miss: true @@ -139,7 +139,7 @@ jobs: path: node_modules - name: Restore build - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 with: enableCrossOsArchive: true fail-on-cache-miss: true @@ -147,13 +147,13 @@ jobs: path: .server - name: Setup Node.js - uses: actions/setup-node@v5 + uses: actions/setup-node@v6 with: node-version-file: .nvmrc - name: Cache task if: ${{ matrix.task.cache }} - uses: actions/cache@v4 + uses: actions/cache@v5 with: enableCrossOsArchive: true key: ${{ matrix.task.name }}-${{ runner.os }}-${{ github.sha }} @@ -164,7 +164,7 @@ jobs: - name: Save test coverage if: ${{ always() }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.task.description }} coverage path: coverage @@ -178,12 +178,12 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Restore unit test coverage - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 with: enableCrossOsArchive: true fail-on-cache-miss: true @@ -191,7 +191,7 @@ jobs: path: coverage - name: SonarCloud Scan - uses: SonarSource/sonarqube-scan-action@v6 + uses: SonarSource/sonarqube-scan-action@v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6a0f9d2b..e832f24c 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -12,10 +12,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Cache node modules - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -23,7 +23,7 @@ jobs: ${{ runner.os }}-node- - name: Cache Docker images - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: /tmp/docker-save key: ${{ runner.os }}-docker-${{ hashFiles('docker-compose.integration-test.yml') }} @@ -43,7 +43,7 @@ jobs: echo "No cached Docker images found" fi - name: Set up Node.js - uses: actions/setup-node@v5 + uses: actions/setup-node@v6 with: node-version: '22' cache: 'npm' @@ -83,7 +83,7 @@ jobs: done - name: Upload Test Report - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 if: github.event_name == 'push' && github.ref == 'refs/heads/main' && success() with: name: integration-test-report @@ -107,7 +107,7 @@ jobs: shell: bash - name: Upload docker compose logs if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: docker-compose-logs path: ./logs.txt diff --git a/.github/workflows/pr-notifier.yml b/.github/workflows/pr-notifier.yml index 76f6b8e1..b5aba146 100644 --- a/.github/workflows/pr-notifier.yml +++ b/.github/workflows/pr-notifier.yml @@ -50,7 +50,7 @@ jobs: steps: - name: Build Slack JSON - uses: actions/github-script@v8 + uses: actions/github-script@v9 id: payload if: github.event.action != 'submitted' || github.event.review.state == 'approved' @@ -89,7 +89,7 @@ jobs: } - name: Post to Slack - uses: slackapi/slack-github-action@v2.1.1 + uses: slackapi/slack-github-action@v3.0.2 if: github.event.action != 'submitted' || github.event.review.state == 'approved' with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 870c3bcf..00b4a3e5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Check out code - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Build and Publish uses: DEFRA/cdp-build-action/build@main