Skip to content

Commit f8ac5b3

Browse files
committed
gather reports before uploading
1 parent c33b9e7 commit f8ac5b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,13 @@ jobs:
9494
- name: 🧪 Run Internal Unit Tests
9595
run: pnpm run test:internal --reporter=default --reporter=blob --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
9696

97-
- name: Upload blob report to GitHub Actions Artifacts
97+
- name: Gather all reports
98+
run: |
99+
mkdir -p .vitest-reports
100+
find . -type f -path '*/.vitest-reports/blob-*.json' \
101+
-exec bash -c 'src="$1"; basename=$(basename "$src"); pkg=$(dirname "$src" | sed "s|^\./||;s|/\.vitest-reports$||;s|/|_|g"); cp "$src" ".vitest-reports/${pkg}-${basename}"' _ {} \;
102+
103+
- name: Upload blob reports to GitHub Actions Artifacts
98104
if: ${{ !cancelled() }}
99105
uses: actions/upload-artifact@v4
100106
with:

0 commit comments

Comments
 (0)