From df0a5212c2e8583b90327da252f2a3139cf80c42 Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Thu, 2 Jan 2025 09:44:22 +0800 Subject: [PATCH] Fix CI Upload Configuration --- .github/workflows/build-and-test-pr.yml | 16 ++++++++-------- .../workflows/build-and-test-scheduled-3.1.yml | 4 ++-- .../workflows/build-and-test-scheduled-3.2.yml | 4 ++-- .../workflows/build-and-test-scheduled-3.3.yml | 4 ++-- .github/workflows/release-test.yml | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-and-test-pr.yml b/.github/workflows/build-and-test-pr.yml index fd2560825ab..1315b7f6b25 100644 --- a/.github/workflows/build-and-test-pr.yml +++ b/.github/workflows/build-and-test-pr.yml @@ -346,9 +346,9 @@ jobs: 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 + name: samples-test-result-${{matrix.job_id}} path: test/jobs/*-result* samples-test-result: needs: [check-format, samples-test-job] @@ -362,9 +362,9 @@ jobs: 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 @@ -449,9 +449,9 @@ jobs: path: target/jacoco*.exec - name: "Upload test result" if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: test-result + name: test-result-${{matrix.job_id}} path: test/jobs/*-result* integration-test-result: needs: [check-format, integration-test-job] @@ -465,9 +465,9 @@ jobs: 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 diff --git a/.github/workflows/build-and-test-scheduled-3.1.yml b/.github/workflows/build-and-test-scheduled-3.1.yml index 3fbd32dbee7..1762f641bcd 100644 --- a/.github/workflows/build-and-test-scheduled-3.1.yml +++ b/.github/workflows/build-and-test-scheduled-3.1.yml @@ -316,7 +316,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: samples-test-result-${{matrix.jdk}}-* + pattern: samples-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result" @@ -415,7 +415,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: integration-test-result-${{matrix.jdk}}-* + pattern: integration-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result" diff --git a/.github/workflows/build-and-test-scheduled-3.2.yml b/.github/workflows/build-and-test-scheduled-3.2.yml index 9197e0aff5c..f084e55c8b7 100644 --- a/.github/workflows/build-and-test-scheduled-3.2.yml +++ b/.github/workflows/build-and-test-scheduled-3.2.yml @@ -316,7 +316,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: samples-test-result-${{matrix.jdk}}-* + pattern: samples-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result" @@ -415,7 +415,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: integration-test-result-${{matrix.jdk}}-* + pattern: integration-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result" diff --git a/.github/workflows/build-and-test-scheduled-3.3.yml b/.github/workflows/build-and-test-scheduled-3.3.yml index bdb3209ab4c..fed0d6dc15b 100644 --- a/.github/workflows/build-and-test-scheduled-3.3.yml +++ b/.github/workflows/build-and-test-scheduled-3.3.yml @@ -316,7 +316,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: samples-test-result-${{matrix.jdk}}-* + pattern: samples-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result" @@ -415,7 +415,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: integration-test-result-${{matrix.jdk}}-* + pattern: integration-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result" diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index f2d7696944f..1a1584d466f 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -313,7 +313,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: samples-test-result-${{matrix.jdk}}-* + pattern: samples-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result" @@ -412,7 +412,7 @@ jobs: - name: "Download test result" uses: actions/download-artifact@v4 with: - name: integration-test-result-${{matrix.jdk}}-* + pattern: integration-test-result-${{matrix.jdk}}-* github-token: ${{ secrets.GITHUB_TOKEN }} path: test/jobs/ - name: "Merge test result"