diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 79009521..8f968105 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -47,6 +47,8 @@ jobs: - name: Run Playwright tests run: npx playwright test + env: + PLAYWRIGHT_BASE_URL: '127.0.0.1:8000' - uses: actions/upload-artifact@v3 if: always() diff --git a/playwright/config.ts b/playwright/config.ts index 961b435b..f957e71c 100644 --- a/playwright/config.ts +++ b/playwright/config.ts @@ -1 +1 @@ -export const PLAYWRIGHT_BASE_URL = 'http://laravel.test'; +export const PLAYWRIGHT_BASE_URL = process.env.PLAYWRIGHT_BASE_URL ?? 'http://laravel.test';