Skip to content

Playwright Tests (Production) #100

Playwright Tests (Production)

Playwright Tests (Production) #100

name: Playwright Tests (Production)
on:
# Okay to remove the push trigger after merge
push:
branches: [ '118-playwright-prod-action' ]
workflow_run:
workflows: ["Deploy static content to Pages"]
types:
- completed
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24.15.0
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run tests
run: npm run test:e2e
- name: Upload results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 30