Replace preview/ HTML with React-only docs (foundations + live charts) #12
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: E2E | |
| # Runs the Playwright end-to-end suite against a freshly built docs site. | |
| # Uses chromium only (single browser binary for speed). | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src/**" | |
| - "scripts/**" | |
| - "tests/e2e/**" | |
| - "playwright.config.ts" | |
| - "colors_and_type.css" | |
| - "ui_kits/**" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - ".github/workflows/e2e.yml" | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: e2e-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e: | |
| name: Playwright (chromium) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 12 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Resolve playwright version | |
| id: pw | |
| run: | | |
| v=$(node -p "require('./node_modules/@playwright/test/package.json').version") | |
| echo "version=$v" >> "$GITHUB_OUTPUT" | |
| - name: Cache playwright browsers | |
| id: pw-cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: playwright-${{ runner.os }}-${{ steps.pw.outputs.version }} | |
| - name: Install browsers | |
| if: steps.pw-cache.outputs.cache-hit != 'true' | |
| run: pnpm exec playwright install --with-deps chromium | |
| - name: Install browser system deps (cache hit only) | |
| if: steps.pw-cache.outputs.cache-hit == 'true' | |
| run: pnpm exec playwright install-deps chromium | |
| - name: Build site | |
| run: pnpm run build:site | |
| - name: Run tests | |
| run: pnpm test:e2e | |
| - name: Upload report | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: playwright-report-${{ github.sha }} | |
| path: | | |
| playwright-report/ | |
| test-results/ | |
| retention-days: 7 |