From 953d89399ac3d88f5edfcac1b4079923c1e91cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 18 Feb 2025 15:29:11 +0100 Subject: [PATCH] chore: bump actions/cache to v4 across workflows --- .github/workflows/code_check_frontend.yml | 6 +++--- .github/workflows/frontend_sonar_scan.yml | 2 +- .github/workflows/merge.yaml | 2 +- .github/workflows/pr.yaml | 19 +++++++++---------- .../workflows/test_integration_playwright.yml | 10 +++++----- CHANGELOG.md | 1 + 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/code_check_frontend.yml b/.github/workflows/code_check_frontend.yml index a80098736..8e5da2f79 100644 --- a/.github/workflows/code_check_frontend.yml +++ b/.github/workflows/code_check_frontend.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: govtool/frontend/node_modules key: ${{ runner.os }}-node-${{ hashFiles('govtool/frontend/package-lock.json') }} @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: govtool/frontend/node_modules key: ${{ runner.os }}-node-${{ hashFiles('govtool/frontend/package-lock.json') }} @@ -70,7 +70,7 @@ jobs: uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: govtool/frontend/node_modules key: ${{ runner.os }}-node-${{ hashFiles('govtool/frontend/package-lock.json') }} diff --git a/.github/workflows/frontend_sonar_scan.yml b/.github/workflows/frontend_sonar_scan.yml index 323c83f65..1dcded146 100644 --- a/.github/workflows/frontend_sonar_scan.yml +++ b/.github/workflows/frontend_sonar_scan.yml @@ -17,7 +17,7 @@ jobs: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: govtool/frontend/node_modules key: ${{ runner.os }}-node-${{ hashFiles('govtool/frontend/package-lock.json') }} diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml index 065a39624..3dd137070 100644 --- a/.github/workflows/merge.yaml +++ b/.github/workflows/merge.yaml @@ -102,7 +102,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 2ec98149c..eed67c623 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -74,7 +74,6 @@ jobs: set -o pipefail sudo chmod +x lint.sh && ./lint.sh 2>&1 | tee code_lint_output.txt - - name: Unit tests id: unit_tests run: | @@ -90,7 +89,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -127,19 +126,19 @@ jobs: VITE_IPFS_PROJECT_ID=${{ secrets.IPFS_PROJECT_ID }} IPFS_GATEWAY=${{ secrets.IPFS_GATEWAY }} IPFS_PROJECT_ID=${{ secrets.IPFS_PROJECT_ID }} - + - name: Scan Docker image with Dockle id: dockle run: | - wget -q https://github.com/goodwithtech/dockle/releases/download/v0.4.14/dockle_0.4.14_Linux-64bit.tar.gz - tar zxf dockle_0.4.14_Linux-64bit.tar.gz - sudo mv dockle /usr/local/bin + wget -q https://github.com/goodwithtech/dockle/releases/download/v0.4.14/dockle_0.4.14_Linux-64bit.tar.gz + tar zxf dockle_0.4.14_Linux-64bit.tar.gz + sudo mv dockle /usr/local/bin - dockle --exit-code 1 --exit-level fatal -ak GHC_RELEASE_KEY -ak CABAL_INSTALL_RELEASE_KEY -ak STACK_RELEASE_KEY -ak KEY_SHA512 --format json --input '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' --output ${{ matrix.workdir }}/dockle_scan_output.json - rm -rf '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' - cat ${{ matrix.workdir }}/dockle_scan_output.json + dockle --exit-code 1 --exit-level fatal -ak GHC_RELEASE_KEY -ak CABAL_INSTALL_RELEASE_KEY -ak STACK_RELEASE_KEY -ak KEY_SHA512 --format json --input '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' --output ${{ matrix.workdir }}/dockle_scan_output.json + rm -rf '/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar' + cat ${{ matrix.workdir }}/dockle_scan_output.json - echo "outcome=success" >> $GITHUB_OUTPUT + echo "outcome=success" >> $GITHUB_OUTPUT - name: Create PR comment if: always() diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index cf5e0ed63..bbb9c9052 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -31,7 +31,7 @@ on: workflow_run: workflows: ["Build and deploy GovTool test stack"] types: [completed] - + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: false @@ -39,7 +39,7 @@ concurrency: jobs: integration-tests: runs-on: ubuntu-latest - if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} outputs: start_time: ${{ steps.set-pending-status.outputs.timestamp }} status: ${{ steps.run-test.outcome }} @@ -49,7 +49,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ env.COMMIT_SHA }} + ref: ${{ env.COMMIT_SHA }} - name: Set pending commit status id: set-pending-status run: | @@ -70,7 +70,7 @@ jobs: - name: Cache Playwright browsers id: cache-playwright-browsers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/ms-playwright @@ -132,7 +132,7 @@ jobs: publish-report: runs-on: ubuntu-latest - if: always() && needs.integration-tests.result != 'skipped' + if: always() && needs.integration-tests.result != 'skipped' needs: integration-tests outputs: report_number: ${{ steps.report-details.outputs.report_number }} diff --git a/CHANGELOG.md b/CHANGELOG.md index dc3659a74..4912b0b7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ changes. - Change threshold visual representation in governance action votes - Resize governance action details columns - Update @intersect.mbo/pdf-ui to v0.6.0 +- Bump actions/cache to v4 across workflows ### Removed