Perf/asset metadata cache #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Frontend Visual Regression | |
| on: | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend-visual-regression.yml" | |
| workflow_dispatch: | |
| jobs: | |
| visual-regression: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright browser | |
| run: npx playwright install --with-deps chromium | |
| - name: Run visual regression tests | |
| run: npm run test:visual | |
| - name: Upload Playwright artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: frontend-visual-regression-artifacts | |
| path: | | |
| frontend/test-results | |
| frontend/playwright-report | |
| if-no-files-found: ignore |