Skip to content

Commit a4612ea

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 a4612ea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,16 @@ jobs:
189189
- run: cargo build --tests --workspace
190190
- run: cargo test --workspace
191191

192+
- name: Upload PNG snapshot artifacts on test failure
193+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
194+
if: failure()
195+
with:
196+
name: insta-snapshots-png
197+
path: |
198+
crates/crates_io_og_image/src/snapshots/*.png
199+
crates/crates_io_og_image/src/snapshots/*.snap.new.png
200+
retention-days: 14
201+
192202
frontend-lint:
193203
name: Frontend / Lint
194204
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)