Don't cancel background async visits on navigation #1471
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: Playwright Tests on Firefox | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-firefox: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
| name: Firefox (${{ matrix.adapter }}) - shard ${{ matrix.shard }} of 3) | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| adapter: ['vue', 'react', 'svelte'] | |
| shard: ['1', '2', '3'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| with: | |
| version: 11.1.1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build Inertia | |
| run: pnpm -r --filter './packages/{core,vite}' --filter './packages/${{ matrix.adapter }}*' build | |
| - name: Get Playwright Version | |
| id: playwright-version | |
| run: echo "version=$(node -e "console.log(require('playwright/package.json').version)")" >> $GITHUB_OUTPUT | |
| - name: Cache Playwright Browsers | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: playwright-${{ runner.os }}-firefox-${{ steps.playwright-version.outputs.version }} | |
| - name: Install Playwright Browsers | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: pnpm playwright install --with-deps firefox | |
| - name: Install Playwright Dependencies | |
| if: steps.playwright-cache.outputs.cache-hit == 'true' | |
| run: npx playwright install-deps firefox | |
| - name: Run Playwright Tests | |
| run: pnpm test:${{ matrix.adapter }} --firefox --shard=${{ matrix.shard }}/3 | |
| - name: Upload failure screenshots | |
| if: failure() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: playwright-failure-screenshots-${{ matrix.adapter }}-firefox-shard-${{ matrix.shard }} | |
| path: test-results |