From fa08085119cc97d06dbc8901c1d3a3c2c7ce19f8 Mon Sep 17 00:00:00 2001 From: tison Date: Wed, 21 Feb 2024 16:09:09 +0800 Subject: [PATCH] ci: upgrade actions to node20-based version (#3345) * ci: upgrade actions to node20-based version Signed-off-by: tison * distinguish artifact name Signed-off-by: tison --------- Signed-off-by: tison --- .github/actions/build-linux-artifacts/action.yml | 2 +- .github/actions/build-macos-artifacts/action.yml | 2 +- .github/actions/build-windows-artifacts/action.yml | 2 +- .github/workflows/develop.yml | 10 +++++----- .github/workflows/nightly-ci.yml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/actions/build-linux-artifacts/action.yml b/.github/actions/build-linux-artifacts/action.yml index 03c7239677c2..26eb4c81c09f 100644 --- a/.github/actions/build-linux-artifacts/action.yml +++ b/.github/actions/build-linux-artifacts/action.yml @@ -34,7 +34,7 @@ runs: - name: Upload sqlness logs if: ${{ failure() && inputs.disable-run-tests == 'false' }} # Only upload logs when the integration tests failed. - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sqlness-logs path: /tmp/greptime-*.log diff --git a/.github/actions/build-macos-artifacts/action.yml b/.github/actions/build-macos-artifacts/action.yml index 6b1cf6b03ba8..0b2d42cebb63 100644 --- a/.github/actions/build-macos-artifacts/action.yml +++ b/.github/actions/build-macos-artifacts/action.yml @@ -67,7 +67,7 @@ runs: - name: Upload sqlness logs if: ${{ failure() }} # Only upload logs when the integration tests failed. - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sqlness-logs path: /tmp/greptime-*.log diff --git a/.github/actions/build-windows-artifacts/action.yml b/.github/actions/build-windows-artifacts/action.yml index 452bc58c6a0a..122d490de3f8 100644 --- a/.github/actions/build-windows-artifacts/action.yml +++ b/.github/actions/build-windows-artifacts/action.yml @@ -62,7 +62,7 @@ runs: - name: Upload sqlness logs if: ${{ failure() }} # Only upload logs when the integration tests failed. - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sqlness-logs path: /tmp/greptime-*.log diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 0abdd391c823..b91f370030f5 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -138,7 +138,7 @@ jobs: run: RUST_BACKTRACE=1 ./bins/sqlness-runner -c ./tests/cases --bins-dir ./bins - name: Upload sqlness logs if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sqlness-logs path: /tmp/greptime-*.log @@ -168,9 +168,9 @@ jobs: run: RUST_BACKTRACE=1 ./bins/sqlness-runner -w kafka -k 127.0.0.1:9092 -c ./tests/cases --bins-dir ./bins - name: Upload sqlness logs if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: sqlness-logs + name: sqlness-logs-with-kafka-wal path: /tmp/greptime-*.log retention-days: 3 @@ -269,7 +269,7 @@ jobs: GT_KAFKA_ENDPOINTS: 127.0.0.1:9092 UNITTEST_LOG_DIR: "__unittest_logs" - name: Codecov upload - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./lcov.info @@ -283,7 +283,7 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download pre-built binaries uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index 71842844782c..b7e475a7f6a6 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -45,7 +45,7 @@ jobs: {"text": "Nightly CI failed for sqlness tests"} - name: Upload sqlness logs if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sqlness-logs path: /tmp/greptime-*.log