Skip to content

Commit

Permalink
#225: Split build and test steps for playwright GHA template
Browse files Browse the repository at this point in the history
  • Loading branch information
bstein committed Sep 16, 2022
1 parent 0b26701 commit 24bfced
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 24bfced

Please sign in to comment.