Skip to content

Commit

Permalink
rework webserver start
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeast committed Aug 1, 2024
1 parent 069414c commit 8c1da4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: |
npm run start &
sleep 10
npx playwright test
env:
CI: true
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
12 changes: 7 additions & 5 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ export default defineConfig({
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
webServer: {
command: 'npm run start',
port: 5173,
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
},
});

0 comments on commit 8c1da4f

Please sign in to comment.