Skip to content

playwright base setup [WIP] #16

playwright base setup [WIP]

playwright base setup [WIP] #16

Workflow file for this run

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.57.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: πŸ—οΈ 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