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
# Only run strict comparison when Linux baselines exist in git.
53
+
# Baseline generation is intentionally NOT done on push CI — it
54
+
# blocks on the first cold Vitest+Playwright browser-mode launch
55
+
# and runs out the job timeout. Use the `frontend-update-baselines`
56
+
# workflow_dispatch to generate and commit baselines.
57
+
if git ls-files 'src/**/__screenshots__/**/*-linux.png' | grep -q .; then
58
+
bun run test:browser
59
+
else
60
+
echo "::notice::No Linux baselines committed yet — skipping visual regression. Run 'frontend-update-baselines' workflow to generate."
61
+
fi
62
+
- uses: actions/upload-artifact@v7.0.1
63
+
if: failure()
64
+
with:
65
+
name: browser-test-diffs
66
+
path: |
67
+
frontend/src/**/__screenshots__/**/*.png
68
+
frontend/.vitest-attachments
69
+
retention-days: 7
70
+
- name: Hint on visual diff failure
71
+
if: failure()
72
+
run: |
73
+
echo "::warning::Visual regression detected. If the UI change is intentional, run the 'frontend-update-baselines' workflow on this branch to regenerate baselines."
0 commit comments