You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/improving-performance.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,15 @@ jobs:
159
159
include-hidden-files: true
160
160
retention-days: 1
161
161
162
+
- name: Upload attachments to GitHub Actions Artifacts
163
+
if: ${{ !cancelled() }}
164
+
uses: actions/upload-artifact@v4
165
+
with:
166
+
name: blob-attachments-${{ matrix.shardIndex }}
167
+
path: .vitest-attachments/**
168
+
include-hidden-files: true
169
+
retention-days: 1
170
+
162
171
merge-reports:
163
172
if: ${{ !cancelled() }}
164
173
needs: [tests]
@@ -183,10 +192,19 @@ jobs:
183
192
pattern: blob-report-*
184
193
merge-multiple: true
185
194
195
+
- name: Download attachments from GitHub Actions Artifacts
196
+
uses: actions/download-artifact@v4
197
+
with:
198
+
path: .vitest-attachments
199
+
pattern: blob-attachments-*
200
+
merge-multiple: true
201
+
186
202
- name: Merge reports
187
203
run: npx vitest --merge-reports
188
204
```
189
205
206
+
If your tests create file-based attachments (for example via `context.annotate` or custom artifacts), upload and restore [`attachmentsDir`](/config/attachmentsdir) in the merge job as shown above.
0 commit comments