Merge pull request #10 from dknauss/dependabot/github_actions/actions… #7
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: Validate PDF Visuals | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - '.github/scripts/validate-pdf-visual.mjs' | |
| - '.github/workflows/validate-pdf-visual.yml' | |
| - '.github/test-artifacts/pdf-baselines/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate-pdf-visual: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Setup Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright Chromium | |
| run: npx playwright install --with-deps chromium | |
| - name: Validate PDF visuals | |
| run: xvfb-run -a npm run validate:pdf-visual | |
| - name: Upload visual diff artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f | |
| with: | |
| name: pdf-visual-diffs | |
| path: output/playwright/pdf-visual | |
| if-no-files-found: ignore |