Skip to content

refactor: ♻️ Cypress and Playwright scripts #37

refactor: ♻️ Cypress and Playwright scripts

refactor: ♻️ Cypress and Playwright scripts #37

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
playwright-test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies and verify Playwright
run: |
npm ci
npx playwright --version
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run pw:test
- name: Upload Playwright reports
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-reports
path: reports/playwright/result/
retention-days: 5