Skip to content

test: add visual tests infra #3

test: add visual tests infra

test: add visual tests infra #3

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main, next]
pull_request:
jobs:
test:
name: Test component
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test:component
env:
CI: 'true'
- name: Upload Playwright playwright report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: playwright-reports
path: playwright-report/index.html
retention-days: 1