Skip to content

End-to-end Testing

End-to-end Testing #2

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
e2e-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
services:
web:
image: node:18
ports:
- 5173:5173
options: >-
--health-cmd "curl --fail http://localhost:5173 || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30