Skip to content

Commit 40eb3e1

Browse files
fixup! feat(test): replace cloudflare open-next build test with playwright tests
avoid running a script taken from process.env
1 parent 7a128dd commit 40eb3e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
working-directory: apps/site
7272
run: pnpm playwright
7373
env:
74-
PLAYWRIGHT_WEB_SERVER_COMMAND: pnpm turbo run cloudflare:preview
74+
PLAYWRIGHT_RUN_CLOUDFLARE_PREVIEW: true
7575
PLAYWRIGHT_BASE_URL: http://127.0.0.1:8787
7676

7777
- name: Upload Playwright test results

apps/site/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export default defineConfig({
1010
retries: isCI ? 2 : 0,
1111
workers: isCI ? 1 : undefined,
1212
reporter: isCI ? [['html'], ['github']] : [['html']],
13-
...(process.env.PLAYWRIGHT_WEB_SERVER_COMMAND
13+
...(process.env.PLAYWRIGHT_RUN_CLOUDFLARE_PREVIEW
1414
? {
1515
webServer: {
16-
command: process.env.PLAYWRIGHT_WEB_SERVER_COMMAND,
16+
command: 'pnpm turbo run cloudflare:preview',
1717
url: process.env.PLAYWRIGHT_BASE_URL || 'http://127.0.0.1:3000',
1818
timeout: 60_000 * 3,
1919
},

0 commit comments

Comments
 (0)