Skip to content

Commit 35a58e3

Browse files
committed
fix(ci): build open-next in a dedicated step and skip turbo for wrangler
Turbo's persistent-task output buffering swallows wrangler dev's readiness signal in CI, making Playwright's webServer probe time out at 180s even though the preview eventually comes up. Move the OpenNext build to a dedicated CI step so Playwright's webServer can invoke wrangler dev directly, keeping stdout attached to the CI log and removing the dependsOn chain indirection.
1 parent 87f739f commit 35a58e3

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/playwright-cloudflare-open-next.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ jobs:
5050
working-directory: apps/site
5151
run: node_modules/.bin/playwright install --with-deps
5252

53+
- name: Build open-next site
54+
working-directory: apps/cloudflare
55+
run: node --run cloudflare:build:worker
56+
env:
57+
NEXT_PUBLIC_DEPLOY_TARGET: cloudflare
58+
NODE_OPTIONS: --conditions=cloudflare
59+
5360
- name: Run Playwright tests
5461
working-directory: apps/site
5562
run: node --run playwright

apps/cloudflare/playwright.platform.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
webServer: {
1313
stdout: 'pipe',
1414
command:
15-
'../../node_modules/.bin/turbo cloudflare:preview --filter=@node-core/platform-cloudflare',
15+
'../../node_modules/.bin/wrangler dev --config ../cloudflare/wrangler.jsonc',
1616
url: 'http://127.0.0.1:8787',
1717
timeout: 60_000 * 3,
1818
},

0 commit comments

Comments
 (0)