From c2de9e4788c1042a9b3ef8ecae2ed0b4384bd6b8 Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Tue, 2 Sep 2025 21:57:58 -0600 Subject: [PATCH] Seed snapshots on branch --- .gitea/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1a3b261..c2d2618 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -144,9 +144,9 @@ jobs: curl -fsS "http://$HOST:$PORT" >/dev/null echo "✅ App is responding at http://$HOST:$PORT" - # Seed snapshots on main branch only (one-time setup) - if [ "${{ gitea.ref }}" = "refs/heads/main" ]; then - echo "🌱 Seeding snapshots on main branch..." + # Seed snapshots on main branch or when testing (for debugging) + if [ "${{ gitea.ref }}" = "refs/heads/main" ] || [ "${{ gitea.ref }}" = "refs/heads/fix-runner-trigger" ]; then + echo "🌱 Seeding snapshots on ${{ gitea.ref }}..." PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium fi