Skip to content

Commit 07dcf33

Browse files
ci: skip E2E jobs on pushes to main (#1917)
Gate e2e-setup and e2e on github.ref != 'refs/heads/main' so post-merge main runs no longer execute Playwright against the demo backend. PR runs and manual workflow_dispatch are unaffected. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3acabc3 commit 07dcf33

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ jobs:
243243
# every shipping spec lives inside a domain folder.
244244
e2e-setup:
245245
needs: [setup, scenarios]
246+
# Temporarily skip E2E on pushes to main while we stabilize the demo backend
247+
# contract. PR runs and manual dispatches still execute the suite.
248+
if: github.ref != 'refs/heads/main'
246249
runs-on: ubuntu-latest
247250
outputs:
248251
domains: ${{ steps.list-domains.outputs.domains }}
@@ -325,8 +328,9 @@ jobs:
325328
e2e:
326329
needs: [setup, scenarios, e2e-setup]
327330
# Skip cleanly when no domain folders exist — fromJson on an empty array
328-
# would otherwise fail matrix expansion.
329-
if: needs.e2e-setup.outputs.domains != '[]'
331+
# would otherwise fail matrix expansion. Also skipped on main while we
332+
# stabilize the demo backend contract (mirrors the e2e-setup gate).
333+
if: github.ref != 'refs/heads/main' && needs.e2e-setup.outputs.domains != '[]'
330334
runs-on: ubuntu-latest
331335
strategy:
332336
fail-fast: false

0 commit comments

Comments
 (0)