Skip to content

Commit 51bca13

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 27a4301 commit 51bca13

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
@@ -209,10 +209,20 @@ jobs:
209209
- run: cargo build --tests --workspace
210210
- run: cargo test --workspace
211211
env:
212+
INSTA_UPDATE: new
212213
# Set the path to the Fira Sans font for Typst.
213214
# The path is relative to the `crates_io_og_image` crate root.
214215
TYPST_FONT_PATH: ../../Fira-4.202/otf
215216

217+
- name: Upload PNG snapshot artifacts on test failure
218+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
219+
if: failure()
220+
with:
221+
name: insta-snapshots-png
222+
path: |
223+
crates/crates_io_og_image/src/snapshots
224+
retention-days: 14
225+
216226
frontend-lint:
217227
name: Frontend / Lint
218228
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)