Playwright #9
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**' | |
| - 'playwright/**' | |
| - 'package-lock.json' | |
| - 'playwright.config.ts' | |
| - '.github/workflows/playwright.yml' | |
| workflow_dispatch: | |
| jobs: | |
| e2e: | |
| name: E2E (Playwright) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.1 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6.2.0 | |
| with: | |
| node-version: '24.14.0' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Check Types | |
| run: npm run check-types | |
| - name: Lint Playwright Files | |
| run: npm run lint:playwright | |
| - name: Install Browsers | |
| run: npx playwright install --with-deps chromium webkit | |
| - name: Run Playwright Tests | |
| env: | |
| CI: 'true' | |
| run: npm run test:e2e | |
| - name: Upload Playwright report | |
| uses: actions/upload-artifact@v6.0.0 | |
| if: ${{ failure() }} | |
| with: | |
| name: playwright-report | |
| path: playwright-report | |
| if-no-files-found: ignore | |
| - name: Upload Playwright test results | |
| uses: actions/upload-artifact@v6.0.0 | |
| if: ${{ failure() }} | |
| with: | |
| name: test-results | |
| path: test-results | |
| if-no-files-found: ignore |