From a199310fae439f46fa4db120994969a1264ad5a7 Mon Sep 17 00:00:00 2001 From: Water-Melon Date: Wed, 9 Oct 2024 08:51:58 +0000 Subject: [PATCH] chore(ci): bump all actions to support node.js 20 KAG-5461 --- .../build-wasm-test-filters/action.yml | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/build_and_test.yml | 22 +++++++++---------- .github/workflows/deck-integration.yml | 2 +- .github/workflows/perf.yml | 2 +- .github/workflows/release.yml | 16 +++++++------- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/actions/build-wasm-test-filters/action.yml b/.github/actions/build-wasm-test-filters/action.yml index d633f7cbafe8d..f4e4cd8482467 100644 --- a/.github/actions/build-wasm-test-filters/action.yml +++ b/.github/actions/build-wasm-test-filters/action.yml @@ -17,7 +17,7 @@ runs: echo "WASM_FILTER_CACHE_PREFIX=wasm-test-filters::v3::${{ runner.os }}" >> $GITHUB_ENV - name: Restore Cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 id: restore-cache with: path: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b815a183274aa..d7007460c4880 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,7 +73,7 @@ jobs: luarocks config - name: Bazel Outputs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: bazel-outputs diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 0e1c858b5f74c..401c73cab0859 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -155,7 +155,7 @@ jobs: static-mode: ${{ github.run_attempt > 1 }} - name: Upload schedule files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: schedule-test-files @@ -306,7 +306,7 @@ jobs: psql -hlocalhost -Ukong kong -tAc 'alter system set max_connections = 5000;' - name: Download test schedule file - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: schedule-test-files @@ -321,13 +321,13 @@ jobs: make dev - name: Download test rerun information - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 continue-on-error: true with: name: test-rerun-info-${{ matrix.runner }} - name: Download test runtime statistics from previous runs - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 continue-on-error: true with: name: test-runtime-statistics-${{ matrix.runner }} @@ -357,7 +357,7 @@ jobs: - name: Upload error logs if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: busted-test-errlogs-${{ matrix.runner }} path: ${{ env.SPEC_ERRLOG_CACHE_DIR }} @@ -365,7 +365,7 @@ jobs: - name: Upload test rerun information if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-rerun-info-${{ matrix.runner }} path: ${{ env.FAILED_TEST_FILES_FILE }} @@ -373,14 +373,14 @@ jobs: - name: Upload test runtime statistics for offline scheduling if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-runtime-statistics-${{ matrix.runner }} path: ${{ env.TEST_FILE_RUNTIME_FILE }} retention-days: 7 - name: Archive coverage stats file - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ always() && (inputs.coverage == true || github.event_name == 'schedule') }} with: name: luacov-stats-out-${{ github.job }}-${{ github.run_id }}-${{ matrix.runner }} @@ -444,14 +444,14 @@ jobs: - name: Upload error logs if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: PDK-test-errlogs path: ${{ env.SPEC_ERRLOG_CACHE_DIR }} retention-days: 1 - name: Archive coverage stats file - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ always() && (inputs.coverage == true || github.event_name == 'schedule') }} with: name: luacov-stats-out-${{ github.job }}-${{ github.run_id }} @@ -481,7 +481,7 @@ jobs: sudo luarocks install luafilesystem # Download all archived coverage stats files - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 - name: Stats aggregation shell: bash diff --git a/.github/workflows/deck-integration.yml b/.github/workflows/deck-integration.yml index aef399b96f441..1c2b5cf5f9f0a 100644 --- a/.github/workflows/deck-integration.yml +++ b/.github/workflows/deck-integration.yml @@ -50,7 +50,7 @@ jobs: run: sudo apt update && sudo apt install -y libyaml-dev valgrind libprotobuf-dev libpam-dev postgresql-client jq - name: Checkout Kong source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive token: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }} diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 7bc69ee2bfe79..e36d5fdbfbbd5 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -65,7 +65,7 @@ jobs: luarocks - name: Bazel Outputs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: bazel-outputs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f7d3de5b660f..859d5a98948ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -260,7 +260,7 @@ jobs: tail -n500 bazel-out/**/*/CMake.log || true - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.label }}-packages path: bazel-bin/pkg @@ -280,7 +280,7 @@ jobs: - uses: actions/checkout@v4 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ matrix.label }}-packages path: bazel-bin/pkg @@ -316,14 +316,14 @@ jobs: - uses: actions/checkout@v4 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ matrix.artifact-from }}-packages path: bazel-bin/pkg - name: Download artifact (alt) if: matrix.artifact-from-alt != '' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ matrix.artifact-from-alt }}-packages path: bazel-bin/pkg @@ -348,10 +348,10 @@ jobs: - name: Set up QEMU if: matrix.docker-platforms != '' - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Set platforms id: docker_platforms_arg @@ -521,7 +521,7 @@ jobs: - uses: actions/checkout@v4 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ matrix.artifact-from }}-packages path: bazel-bin/pkg @@ -588,7 +588,7 @@ jobs: username: ${{ secrets.GHA_DOCKERHUB_PUSH_USER }} password: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUSH_TOKEN }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get latest commit SHA on master run: |