From 03b1520bdb83d3bc8fbcaa7da10044b0c66bb19f Mon Sep 17 00:00:00 2001 From: ssshooter Date: Fri, 12 Jan 2024 22:24:50 +0800 Subject: [PATCH] ci: update playwright config --- .github/workflows/playwright.yml | 2 -- playwright.config.ts | 12 +++++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index aaa7ed3..b2a7d18 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -20,8 +20,6 @@ jobs: run: pnpm i - name: Install Playwright Browsers run: npx playwright install --with-deps - - name: Run Dev Server - run: npm run dev - name: Run Playwright tests run: npx playwright test - uses: actions/upload-artifact@v3 diff --git a/playwright.config.ts b/playwright.config.ts index c3b0cd8..c354901 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -70,9 +70,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 dev', + url: 'http://127.0.0.1:23333', + reuseExistingServer: !process.env.CI, + stdout: 'ignore', + stderr: 'pipe', + }, })