From 8ff017471aae88cd0fffa1a97155284882f60d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJermaineHua=E2=80=9D?= Date: Fri, 1 Nov 2024 22:53:09 +0800 Subject: [PATCH] Upgrade github action version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “JermaineHua” --- .github/workflows/build-and-test-pr.yml | 110 +++++++++--------- .../build-and-test-scheduled-3.1.yml | 52 ++++----- .../build-and-test-scheduled-3.2.yml | 52 ++++----- .../build-and-test-scheduled-3.3.yml | 52 ++++----- .github/workflows/release-test.yml | 54 ++++----- 5 files changed, 162 insertions(+), 158 deletions(-) diff --git a/.github/workflows/build-and-test-pr.yml b/.github/workflows/build-and-test-pr.yml index 00dfed43dd4d..a818c3c43b5e 100644 --- a/.github/workflows/build-and-test-pr.yml +++ b/.github/workflows/build-and-test-pr.yml @@ -78,13 +78,13 @@ jobs: needs: check-format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Check License" uses: apache/skywalking-eyes@e1a02359b239bd28de3f6d35fdc870250fa513d5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: "Set up JDK 21" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -107,11 +107,11 @@ jobs: version: ${{ steps.dubbo-version.outputs.version }} steps: - name: "Checkout code" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: dubbo - name: "Set up JDK" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -155,7 +155,7 @@ jobs: shopt -s globstar zip ${{ github.workspace }}/class.zip **/target/classes/* -r - name: "Upload class result" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "class-file" path: ${{ github.workspace }}/class.zip @@ -163,7 +163,7 @@ jobs: if: failure() run: zip ${{ github.workspace }}/checkstyle.zip *checkstyle* -r - name: "Upload checkstyle file if failure" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: "checkstyle-file" @@ -221,11 +221,11 @@ jobs: ZOOKEEPER_VERSION: 3.7.2 steps: - name: "Checkout code" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: "Set up JDK ${{ matrix.jdk }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -256,7 +256,7 @@ jobs: if: failure() run: cat test_errors.log - name: "Upload coverage result" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage-result path: "**/target/site/**/jacoco.xml" @@ -267,14 +267,14 @@ jobs: env: JOB_COUNT: 3 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master - name: "Prepare test list" run: bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-list path: test/jobs @@ -289,9 +289,9 @@ jobs: strategy: fail-fast: false matrix: - job_id: [1, 2, 3] + job_id: [1,2,3] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -314,12 +314,12 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-list path: test/jobs/ - name: "Set up JDK 8" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 8 @@ -335,13 +335,13 @@ jobs: - name: "merge jacoco result" run: cd test/dubbo-test-jacoco-merger && mvn clean compile exec:java -Dexec.mainClass="org.apache.dubbo.test.JacocoMerge" -Dexec.args="${{github.workspace}}" - name: "Upload jacoco" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: samples-jacoco-result + name: samples-jacoco-result-${{matrix.job_id}} path: target/jacoco*.exec - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-result path: test/jobs/*-result* @@ -352,14 +352,14 @@ jobs: env: JAVA_VER: 8 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: samples-test-result + pattern: samples-test-result-* path: test/jobs/ - name: "Merge test result" run: ./test/scripts/merge-test-results.sh @@ -370,14 +370,14 @@ jobs: env: JOB_COUNT: 3 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main - name: "Prepare test list" run: bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-list path: test/jobs @@ -392,9 +392,9 @@ jobs: strategy: fail-fast: false matrix: - job_id: [1, 2, 3] + job_id: [1,2,3] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -417,12 +417,12 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: test-list path: test/jobs/ - name: "Set up JDK 8" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 8 @@ -438,13 +438,13 @@ jobs: - name: "merge jacoco result" run: cd test/dubbo-test-jacoco-merger && mvn clean compile exec:java -Dexec.mainClass="org.apache.dubbo.test.JacocoMerge" -Dexec.args="${{github.workspace}}" - name: "Upload jacoco" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: jacoco-result + name: jacoco-result-${{matrix.job_id}} path: target/jacoco*.exec - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-result path: test/jobs/*-result* @@ -455,14 +455,14 @@ jobs: env: JAVA_VER: 8 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: test-result + pattern: test-result-* path: test/jobs/ - name: "Merge test result" run: ./test/scripts/merge-test-results.sh @@ -471,56 +471,60 @@ jobs: runs-on: ubuntu-latest needs: [check-format, integration-test-result, samples-test-result, unit-test] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: "./dubbo" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' path: "./dubbo-samples" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' path: "./dubbo-integration-cases" - name: "Set up JDK 21" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 - name: "Restore class result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: "class-file" + github-token: ${{ secrets.GITHUB_TOKEN }} path: ${{ github.workspace }} - name: "Unpack class result" run: | cd ${{ github.workspace }}/dubbo unzip -o ${{ github.workspace }}/class.zip - - name: "Restore jacoco exec" - uses: actions/download-artifact@v3 + - name: "Restore samples jacoco exec" + uses: actions/download-artifact@v4 with: - name: samples-jacoco-result + pattern: samples-jacoco-result-* + github-token: ${{ secrets.GITHUB_TOKEN }} path: dubbo-samples/target/ - - name: "Restore integration jacoco exec" - uses: actions/download-artifact@v3 + - name: "Restore integration test jacoco exec" + uses: actions/download-artifact@v4 with: - name: jacoco-result + pattern: jacoco-result-* + github-token: ${{ secrets.GITHUB_TOKEN }} path: dubbo-integration-cases/target/ - - name: "Merge jacoco result" + - name: "Merge samples jacoco result" run: | cd ${{ github.workspace }}/dubbo-samples/test/dubbo-test-jacoco-merger mvn clean compile exec:java -Dexec.mainClass="org.apache.dubbo.test.JacocoReport" -Dexec.args="${{github.workspace}}/dubbo-samples ${{github.workspace}}/dubbo" - - name: "Merge samples jacoco result" + - name: "Merge integration test jacoco result" run: | cd ${{ github.workspace }}/dubbo-integration-cases/test/dubbo-test-jacoco-merger mvn clean compile exec:java -Dexec.mainClass="org.apache.dubbo.test.JacocoReport" -Dexec.args="${{github.workspace}}/dubbo-integration-cases ${{github.workspace}}/dubbo" - name: "Restore coverage result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: coverage-result + github-token: ${{ secrets.GITHUB_TOKEN }} path: dubbo/ - name: "Upload coverage to Codecov" - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: verbose: true @@ -528,16 +532,16 @@ jobs: needs: check-format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: "./dubbo" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-test-tools' ref: main path: "./dubbo-test-tools" - name: "Set up JDK 21" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -563,7 +567,7 @@ jobs: - name: "Upload error code inspection result" # always() should not be used here, since we don't need to handle the 'canceled' situation. if: ${{ success() || failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "error-inspection-result" path: ${{ github.workspace }}/dubbo-test-tools/dubbo-error-code-inspector/error-inspection-result.txt @@ -572,7 +576,7 @@ jobs: needs: check-format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: "./dubbo" - name: "Setup GraalVM environment" diff --git a/.github/workflows/build-and-test-scheduled-3.1.yml b/.github/workflows/build-and-test-scheduled-3.1.yml index a96d36631177..4de35db9f452 100644 --- a/.github/workflows/build-and-test-scheduled-3.1.yml +++ b/.github/workflows/build-and-test-scheduled-3.1.yml @@ -24,7 +24,7 @@ jobs: license: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.1" - name: Check License @@ -36,11 +36,11 @@ jobs: outputs: version: ${{ steps.dubbo-version.outputs.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.1" path: dubbo - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 8 @@ -66,7 +66,7 @@ jobs: run: 7z a ${{ github.workspace }}/checkstyle.zip *checkstyle* -r - name: "Upload checkstyle file if failure" if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "checkstyle-file" path: ${{ github.workspace }}/checkstyle.zip @@ -138,7 +138,7 @@ jobs: env: DISABLE_FILE_SYSTEM_TEST: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.1" - name: "Set up JDK ${{ matrix.jdk }}" @@ -184,9 +184,9 @@ jobs: DUBBO_DEFAULT_SERIALIZATION: fastjson2 MAVEN_SUREFIRE_ADD_OPENS: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set up JDK ${{ matrix.jdk }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: ${{ matrix.jdk }} @@ -228,7 +228,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -236,7 +236,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-list path: test/jobs @@ -254,7 +254,7 @@ jobs: jdk: [ 8, 11 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -275,7 +275,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-list path: test/jobs/ @@ -295,7 +295,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -309,12 +309,12 @@ jobs: matrix: jdk: [ 8, 11 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/ @@ -326,7 +326,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -334,7 +334,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-list path: test/jobs @@ -352,7 +352,7 @@ jobs: jdk: [ 8, 11 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -373,7 +373,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-list path: test/jobs/ @@ -393,7 +393,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -407,12 +407,12 @@ jobs: matrix: jdk: [ 8, 11 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/ @@ -422,19 +422,19 @@ jobs: error-code-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.1" path: "./dubbo" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-test-tools' ref: main path: "./dubbo-test-tools" - name: "Set up JDK 21" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -453,7 +453,7 @@ jobs: - name: "Upload error code inspection result" # always() should not be used here, since we don't need to handle the 'canceled' situation. if: ${{ success() || failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "error-inspection-result" path: ${{ github.workspace }}/dubbo-test-tools/dubbo-error-code-inspector/error-inspection-result.txt @@ -461,7 +461,7 @@ jobs: native-image-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.1" path: "./dubbo" diff --git a/.github/workflows/build-and-test-scheduled-3.2.yml b/.github/workflows/build-and-test-scheduled-3.2.yml index 728fd2a2fcd1..c58fd0ac8ad3 100644 --- a/.github/workflows/build-and-test-scheduled-3.2.yml +++ b/.github/workflows/build-and-test-scheduled-3.2.yml @@ -24,7 +24,7 @@ jobs: license: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.2" - name: Check License @@ -36,11 +36,11 @@ jobs: outputs: version: ${{ steps.dubbo-version.outputs.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.2" path: dubbo - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 8 @@ -66,7 +66,7 @@ jobs: run: 7z a ${{ github.workspace }}/checkstyle.zip *checkstyle* -r - name: "Upload checkstyle file if failure" if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "checkstyle-file" path: ${{ github.workspace }}/checkstyle.zip @@ -138,7 +138,7 @@ jobs: env: DISABLE_FILE_SYSTEM_TEST: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.2" - name: "Set up JDK ${{ matrix.jdk }}" @@ -184,9 +184,9 @@ jobs: DUBBO_DEFAULT_SERIALIZATION: fastjson2 MAVEN_SUREFIRE_ADD_OPENS: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set up JDK ${{ matrix.jdk }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: ${{ matrix.jdk }} @@ -228,7 +228,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -236,7 +236,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-list path: test/jobs @@ -254,7 +254,7 @@ jobs: jdk: [ 8, 11, 17, 21 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -275,7 +275,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-list path: test/jobs/ @@ -295,7 +295,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -309,12 +309,12 @@ jobs: matrix: jdk: [ 8, 11, 17, 21 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/ @@ -326,7 +326,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -334,7 +334,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-list path: test/jobs @@ -352,7 +352,7 @@ jobs: jdk: [ 8, 11, 17, 21 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -373,7 +373,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-list path: test/jobs/ @@ -393,7 +393,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -407,12 +407,12 @@ jobs: matrix: jdk: [ 8, 11, 17, 21 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/ @@ -422,19 +422,19 @@ jobs: error-code-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.2" path: "./dubbo" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-test-tools' ref: main path: "./dubbo-test-tools" - name: "Set up JDK 21" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -453,7 +453,7 @@ jobs: - name: "Upload error code inspection result" # always() should not be used here, since we don't need to handle the 'canceled' situation. if: ${{ success() || failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "error-inspection-result" path: ${{ github.workspace }}/dubbo-test-tools/dubbo-error-code-inspector/error-inspection-result.txt @@ -461,7 +461,7 @@ jobs: native-image-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.2" path: "./dubbo" diff --git a/.github/workflows/build-and-test-scheduled-3.3.yml b/.github/workflows/build-and-test-scheduled-3.3.yml index a0938d0a1cde..7bf6a993bbfa 100644 --- a/.github/workflows/build-and-test-scheduled-3.3.yml +++ b/.github/workflows/build-and-test-scheduled-3.3.yml @@ -24,7 +24,7 @@ jobs: license: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.3" - name: Check License @@ -36,11 +36,11 @@ jobs: outputs: version: ${{ steps.dubbo-version.outputs.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.3" path: dubbo - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -66,7 +66,7 @@ jobs: run: 7z a ${{ github.workspace }}/checkstyle.zip *checkstyle* -r - name: "Upload checkstyle file if failure" if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "checkstyle-file" path: ${{ github.workspace }}/checkstyle.zip @@ -138,7 +138,7 @@ jobs: env: DISABLE_FILE_SYSTEM_TEST: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.3" - name: "Set up JDK ${{ matrix.jdk }}" @@ -184,9 +184,9 @@ jobs: DUBBO_DEFAULT_SERIALIZATION: fastjson2 MAVEN_SUREFIRE_ADD_OPENS: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set up JDK ${{ matrix.jdk }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: ${{ matrix.jdk }} @@ -228,7 +228,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -236,7 +236,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-list path: test/jobs @@ -254,7 +254,7 @@ jobs: jdk: [ 8, 11, 17, 21 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -275,7 +275,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-list path: test/jobs/ @@ -295,7 +295,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -309,12 +309,12 @@ jobs: matrix: jdk: [ 8, 11, 17, 21 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/ @@ -326,7 +326,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -334,7 +334,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-list path: test/jobs @@ -352,7 +352,7 @@ jobs: jdk: [ 8, 11, 17, 21 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -373,7 +373,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-list path: test/jobs/ @@ -393,7 +393,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -407,12 +407,12 @@ jobs: matrix: jdk: [ 8, 11, 17, 21 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/ @@ -422,19 +422,19 @@ jobs: error-code-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.3" path: "./dubbo" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-test-tools' ref: main path: "./dubbo-test-tools" - name: "Set up JDK 21" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -453,7 +453,7 @@ jobs: - name: "Upload error code inspection result" # always() should not be used here, since we don't need to handle the 'canceled' situation. if: ${{ success() || failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "error-inspection-result" path: ${{ github.workspace }}/dubbo-test-tools/dubbo-error-code-inspector/error-inspection-result.txt @@ -461,7 +461,7 @@ jobs: native-image-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "3.3" path: "./dubbo" diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 8e79ba80e3db..17c4b46b98f4 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -25,7 +25,7 @@ jobs: license: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check License uses: apache/skywalking-eyes@main env: @@ -35,10 +35,10 @@ jobs: outputs: version: ${{ steps.dubbo-version.outputs.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: dubbo - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 @@ -64,7 +64,7 @@ jobs: run: 7z a ${{ github.workspace }}/checkstyle.zip *checkstyle* -r - name: "Upload checkstyle file if failure" if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "checkstyle-file" path: ${{ github.workspace }}/checkstyle.zip @@ -136,9 +136,9 @@ jobs: env: DISABLE_FILE_SYSTEM_TEST: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set up JDK ${{ matrix.jdk }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.jdk }} distribution: 'zulu' @@ -181,9 +181,9 @@ jobs: DUBBO_DEFAULT_SERIALIZATION: fastjson2 MAVEN_SUREFIRE_ADD_OPENS: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set up JDK ${{ matrix.jdk }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: ${{ matrix.jdk }} @@ -225,7 +225,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -233,7 +233,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-list path: test/jobs @@ -251,7 +251,7 @@ jobs: jdk: [ 8, 11, 17, 21 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master @@ -272,7 +272,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-list path: test/jobs/ @@ -292,7 +292,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -306,12 +306,12 @@ jobs: matrix: jdk: [ 8, 11, 17, 21 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-samples' ref: master - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: samples-test-result-${{matrix.jdk}} path: test/jobs/ @@ -323,7 +323,7 @@ jobs: env: JOB_COUNT: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -331,7 +331,7 @@ jobs: run: | bash ./test/scripts/prepare-test.sh - name: "Upload test list" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-list path: test/jobs @@ -349,7 +349,7 @@ jobs: jdk: [ 8, 11, 17, 21 ] job_id: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main @@ -370,7 +370,7 @@ jobs: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-list path: test/jobs/ @@ -390,7 +390,7 @@ jobs: run: cd test && bash ./run-tests.sh - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/*-result* @@ -404,12 +404,12 @@ jobs: matrix: jdk: [ 8, 11, 17, 21 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-integration-cases' ref: main - name: "Download test result" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: integration-test-result-${{matrix.jdk}} path: test/jobs/ @@ -419,18 +419,18 @@ jobs: error-code-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: "./dubbo" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: 'apache/dubbo-test-tools' ref: main path: "./dubbo-test-tools" - name: "Set up JDK 21" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 21 distribution: 'zulu' @@ -449,7 +449,7 @@ jobs: - name: "Upload error code inspection result" # always() should not be used here, since we don't need to handle the 'canceled' situation. if: ${{ success() || failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: "error-inspection-result" path: ${{ github.workspace }}/dubbo-test-tools/dubbo-error-code-inspector/error-inspection-result.txt @@ -457,7 +457,7 @@ jobs: native-image-inspecting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: "./dubbo"