Update Screenshots #1
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: Update Screenshots | |
| on: workflow_dispatch | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install playwright browsers | |
| run: npx playwright install chromium | |
| - name: Run tests | |
| run: npm run test | |
| - name: Update screenshots | |
| if: failure() | |
| run: npm run test:update | |
| - name: Upload failed screenshots as artifacts | |
| uses: actions/upload-artifact@v3 | |
| if: failure() | |
| with: | |
| name: failed_screenshots | |
| path: | | |
| screenshots/*/failed/ | |
| screenshots/*/baseline/ |