Skip to content

Add Playwright CI, increase workers, shuffle tests #1

Add Playwright CI, increase workers, shuffle tests

Add Playwright CI, increase workers, shuffle tests #1

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main ]
paths:
- 'app/**'
- 'tests/**'
- 'package.json'
- 'package-lock.json'
pull_request:
branches: [ main ]
paths:
- 'app/**'
- 'tests/**'
- 'package.json'
- 'package-lock.json'
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests with XVFB
run: xvfb-run -a npm test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30