Skip to content

Commit b478d73

Browse files
committed
CI: Upload PNG snapshot artifacts on test failure
This temporarily adds artifact upload for PNG snapshots when tests fail, specifically for debugging the failing og_image snapshot tests.
1 parent c45d09f commit b478d73

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,17 @@ jobs:
188188

189189
- run: cargo build --tests --workspace
190190
- run: cargo test --workspace
191+
env:
192+
INSTA_UPDATE: new
193+
194+
- name: Upload PNG snapshot artifacts on test failure
195+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
196+
if: failure()
197+
with:
198+
name: insta-snapshots-png
199+
path: |
200+
crates/crates_io_og_image/src/snapshots
201+
retention-days: 14
191202

192203
frontend-lint:
193204
name: Frontend / Lint

0 commit comments

Comments
 (0)