Skip to content

Add E2E testing workflow using Playwright #1

Add E2E testing workflow using Playwright

Add E2E testing workflow using Playwright #1

Workflow file for this run

name: E2E tests (Playwright)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
working-directory: ./
- name: Install Playwright browsers
run: npx playwright install --with-deps
working-directory: ./
- name: Run Playwright tests
run: npx playwright test -c playwright.config.ts
working-directory: ./
- name: Upload Playwright HTML report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report
retention-days: 7