From ee0256c740c9be18baae6c56d90285df8069f5b4 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Wed, 14 Oct 2026 01:19:39 +0800 Subject: [PATCH] fix(ci): skip report merge after failed shards --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0516da850..35655410f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -290,14 +290,14 @@ jobs: - if: needs.changes.outputs.code == 'true' && success() run: npm ci - uses: actions/download-artifact@v4 - if: needs.changes.outputs.code == 'true' && success() + if: needs.changes.outputs.code == 'true' && success() && needs.test-shard.result == 'success' with: path: .vitest/blob pattern: vitest-report-* merge-multiple: true - name: Merge coverage, JUnit, and timing reports id: merge - if: needs.changes.outputs.code == 'true' && needs.changes.outputs.tier == 'full' && success() + if: needs.changes.outputs.code == 'true' && needs.changes.outputs.tier == 'full' && success() && needs.test-shard.result == 'success' run: >- npm run test:ci:merge -- --coverage.reportsDirectory=coverage @@ -312,7 +312,7 @@ jobs: --outputFile.json=test-results.json - name: Merge fast-suite JUnit and timing reports id: merge-fast - if: needs.changes.outputs.code == 'true' && needs.changes.outputs.tier == 'fast' && success() + if: needs.changes.outputs.code == 'true' && needs.changes.outputs.tier == 'fast' && success() && needs.test-shard.result == 'success' run: >- npm exec -- vitest --merge-reports --reporter=default