chore(deps): bump zod from 3.25.76 to 4.3.6 in /ui #31
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: playwright | |
| on: | |
| pull_request: | |
| paths: | |
| - "ui/**" | |
| - ".github/workflows/playwright.yml" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "ui/**" | |
| - ".github/workflows/playwright.yml" | |
| permissions: read-all | |
| concurrency: | |
| group: playwright-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e: | |
| name: e2e (chromium) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| timeout-minutes: 15 | |
| defaults: | |
| run: | |
| working-directory: ui | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Derive Playwright version | |
| id: pw | |
| run: | | |
| set -eu | |
| ver=$(node -p "require('@playwright/test/package.json').version") | |
| echo "version=$ver" >> "$GITHUB_OUTPUT" | |
| - name: Cache Playwright browsers | |
| id: pw-cache | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: playwright-${{ runner.os }}-${{ steps.pw.outputs.version }} | |
| - name: Install Playwright browser (chromium) | |
| if: steps.pw-cache.outputs.cache-hit != 'true' | |
| run: npx playwright install --with-deps chromium | |
| - name: Install system deps for cached browser | |
| if: steps.pw-cache.outputs.cache-hit == 'true' | |
| run: npx playwright install-deps chromium | |
| - name: Run Playwright tests | |
| env: | |
| CI: "1" | |
| run: npm run e2e | |
| - name: Upload Playwright report | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: playwright-report | |
| path: ui/playwright-report | |
| retention-days: 7 | |
| if-no-files-found: ignore | |
| - name: Upload failure traces | |
| if: failure() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: playwright-traces | |
| path: ui/test-results | |
| retention-days: 7 | |
| if-no-files-found: ignore |