Skip to content

feat: add Playwright for visual regression testing #9

feat: add Playwright for visual regression testing

feat: add Playwright for visual regression testing #9

Workflow file for this run

name: Visual Regression Testing with Playwright
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Hugo setup
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
extended: true
- name: Install dependencies
run: npm install
- 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