chore(github): improve public repository credibility #122
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: Frontend E2E | |
| # Runs the Playwright e2e suite (54 tests, Chromium only) on every pull | |
| # request targeting main and on manual dispatch. | |
| # | |
| # No backend is started. The Playwright webServer config launches the Vite | |
| # dev server automatically when process.env.CI is set (reuseExistingServer | |
| # evaluates to false in CI — see frontend/playwright.config.ts). | |
| # | |
| # Safety posture: read-only, test-only. | |
| # No deploy, no publish, no secrets, no broker execution. | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| frontend-e2e: | |
| name: Playwright e2e | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright Chromium | |
| run: npx playwright install --with-deps chromium | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Run Playwright e2e | |
| run: npm run test:e2e |