add notice to v10 doc archive site #494
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 Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| permissions: | |
| contents: read | |
| actions: read | |
| jobs: | |
| test: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| container: | |
| # https://playwright.dev/docs/docker | |
| image: mcr.microsoft.com/playwright:v1.56.1-noble | |
| options: --user 1001 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run Playwright tests | |
| run: pnpm test:playwright | |
| - uses: actions/upload-artifact@v7 | |
| id: artifact-upload | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 30 | |
| # PR comments on failure are posted by playwright-comment.yml (workflow_run), | |
| # which also works for PRs from forks where this job's token is read-only |