Skip to content

Commit fd2a68c

Browse files
committed
chore: start vite server via Playwright
1 parent 8796cfc commit fd2a68c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ jobs:
7272
run: |
7373
npx playwright install --with-deps
7474
75-
- name: Start the server
76-
run: |
77-
npm run start &
78-
7975
- name: Run Playwright tests
8076
run: |
8177
npm run test:e2e

playwright.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ export default defineConfig({
4747
use: { ...devices["Desktop Safari"] },
4848
},
4949
],
50+
51+
webServer: {
52+
command: "npm run start",
53+
url: "http://127.0.0.1:5173",
54+
reuseExistingServer: !process.env.CI,
55+
},
5056
});

0 commit comments

Comments
 (0)