From eeee8fc2b738c58ab84a0830f26217b60bd5daee Mon Sep 17 00:00:00 2001 From: Water-Melon Date: Wed, 9 Oct 2024 08:51:58 +0000 Subject: [PATCH] bump Github actions to support node.js 20 KAG-5461 --- .../build-wasm-test-filters/action.yml | 2 +- .github/workflows/backport.yml | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/build_and_test.yml | 22 +++++++++---------- .github/workflows/cherry-picks.yml | 2 +- .github/workflows/deck-integration.yml | 2 +- .github/workflows/perf.yml | 2 +- .github/workflows/release.yml | 16 +++++++------- 8 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/actions/build-wasm-test-filters/action.yml b/.github/actions/build-wasm-test-filters/action.yml index d633f7cbafe8..f4e4cd848246 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/backport.yml b/.github/workflows/backport.yml index 12f386a29344..4ba4f42d00ac 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -37,6 +37,6 @@ jobs: } - name: add label if: steps.backport.outputs.was_successful == 'false' - uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.0 + uses: Kong/action-add-labels@81b0a07d6b2ec64d770be1ca94c31ec827418054 with: labels: incomplete-backport diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b815a183274a..d7007460c488 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 0e1c858b5f74..401c73cab085 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/cherry-picks.yml b/.github/workflows/cherry-picks.yml index 9459bf891c6e..95382458f27c 100644 --- a/.github/workflows/cherry-picks.yml +++ b/.github/workflows/cherry-picks.yml @@ -50,6 +50,6 @@ jobs: } - name: add label if: steps.cherry_pick.outputs.was_successful == 'false' - uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.0 + uses: Kong/action-add-labels@81b0a07d6b2ec64d770be1ca94c31ec827418054 with: labels: incomplete-cherry-pick diff --git a/.github/workflows/deck-integration.yml b/.github/workflows/deck-integration.yml index aef399b96f44..1c2b5cf5f9f0 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 7bc69ee2bfe7..e36d5fdbfbbd 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 1f7d3de5b660..859d5a98948a 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: |