Skip to content

Commit 40a94c1

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 40a94c1

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
@@ -209,10 +209,21 @@ 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+
src/worker/jobs/snapshots
225+
retention-days: 14
226+
216227
frontend-lint:
217228
name: Frontend / Lint
218229
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)