fix(web): remove shuffle control from life quotes (#2784) #3203
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: Test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - ".gitignore" | |
| - "**/*.md" | |
| - "docs/**" | |
| # Merge commits are never tested as merged, and nothing re-runs afterward, | |
| # so a red e2e used to land on main and hide until the next PR opened. | |
| # Scoped to main on purpose: a full Playwright run per feature-branch | |
| # commit costs real minutes and adds no signal the PR run does not have. | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - ".gitignore" | |
| - "**/*.md" | |
| - "docs/**" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: e2e-${{ github.event.pull_request.number || github.ref }} | |
| # Superseding a PR push is fine, but two merges landing close together must | |
| # not cancel the first main run: a cancelled run reads as "not red" and | |
| # would recreate the blind spot this trigger exists to close. | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| container: | |
| # Keep this tag aligned with the Playwright version in bun.lock. | |
| image: mcr.microsoft.com/playwright:v1.60.0-noble | |
| options: --ipc=host | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Install Bun setup prerequisites | |
| run: apt-get update && apt-get install -y --no-install-recommends unzip | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Cache Bun dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Verify Playwright browser install | |
| timeout-minutes: 3 | |
| run: bunx playwright install chromium | |
| - name: Run e2e tests | |
| timeout-minutes: 8 | |
| env: | |
| TZ: Etc/UTC | |
| GOOGLE_CLIENT_ID: test-client-id | |
| API_BASEURL: http://localhost:3000/api | |
| run: bun run test:e2e |