From fcda60969ab6bd0bddbba5c3e15a9e1954d8fa3f Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 11 Oct 2024 17:59:02 +0200 Subject: [PATCH] Use build when running CI --- .github/workflows/playwright.yml | 3 +++ playwright.config.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 2b7ae8c..abb978b 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -107,6 +107,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Build + run: npm run build + - uses: actions/cache@v4 id: playwright-browsers-cache with: diff --git a/playwright.config.ts b/playwright.config.ts index 3520747..c941687 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -76,7 +76,7 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: 'npm run dev', + command: 'npm run preview', url: 'http://127.0.0.1:5173', reuseExistingServer: !process.env.CI, },