playwright base setup [WIP] #14
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 E2E | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| concurrency: | |
| group: playwright-e2e-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| NODE_ENV: test | |
| CI: true | |
| E2E_BASE_URL: http://localhost:3000 | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-24.04 | |
| container: mcr.microsoft.com/playwright:v1.50.0-noble | |
| timeout-minutes: 60 | |
| steps: | |
| - name: π₯ Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| - name: π¨ Cache turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .turbo | |
| key: ${{ runner.os }}-turbo-${{ hashFiles('pnpm-lock.yaml', 'turbo.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo- | |
| - name: π» Node setup | |
| uses: ./.github/actions/node-setup | |
| - name: Activate pnpm (pin) | |
| run: corepack prepare pnpm@10.24.0 --activate | |
| shell: bash | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts | |
| shell: bash | |
| - name: ποΈ Build apps | |
| run: pnpm build | |
| shell: bash | |
| - name: π E2E setup | |
| uses: ./.github/actions/e2e-setup | |
| - name: π§ͺ Run E2E (HTML report) | |
| run: pnpm e2e | |
| env: | |
| PWDEBUG: '0' | |
| shell: bash | |
| - name: π€ Upload Playwright artifacts | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
| with: | |
| name: playwright-artifacts | |
| path: | | |
| apps/*-e2e/playwright-report/ | |
| apps/*-e2e/test-results/ | |
| apps/*-e2e/reports/ | |
| if-no-files-found: ignore |