From 24bfced4bf929126d9a6dd73ab66fe5c3d63cad9 Mon Sep 17 00:00:00 2001 From: Bailey Stein Date: Fri, 16 Sep 2022 08:13:53 +0200 Subject: [PATCH] #225: Split build and test steps for playwright GHA template --- .github/workflows/playwright.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 81408b90..4a96d450 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -5,11 +5,6 @@ on: pull_request: branches: "*" -env: - NODE_ENV: "development" - PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true - DEBUG: "pw:browser*" - jobs: test: timeout-minutes: 60 @@ -21,8 +16,10 @@ jobs: node-version: 18 - name: Install dependencies run: npm i + - name: Build application + run: npm run build -- --env=test - name: Run Playwright tests - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test + run: npx playwright test - uses: actions/upload-artifact@v3 if: always() with: