mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-06 02:47:37 +01:00
* test(e2e): prove on the live site that the Cat reads PDFs Added to the production E2E run (Chromium, Firefox, WebKit), signed in as the E2E account. It checks that pdf.js's worker and JPEG 2000 decoder are served from /pdfjs/, that a PDF of slide pictures (JPEG 2000, no text layer — the shape of the deck that started this) attaches as page sheets that are actually drawn, and that a text PDF attaches as a file. Nothing is sent to the Cat, so a run costs no model call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3 * ci(e2e): report live failures as annotations, readable without the log Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt7KKvAA6LzcgFqXA3 --------- Co-authored-by: Claude <noreply@anthropic.com>
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: E2E Auth (Playwright)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# Daily instead of every push to main (CI audit 2026-10-21).
|
|
schedule:
|
|
- cron: '29 4 * * *'
|
|
|
|
jobs:
|
|
e2e:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v6
|
|
|
|
# setup-pnpm's default store nests inside its own bin dir, which breaks
|
|
# any prepare-building dep (portable-type TS2742) — pin it outside.
|
|
- name: Pin pnpm store location
|
|
run: pnpm config set store-dir ~/.pnpm-store --global
|
|
|
|
- name: Use Node 24
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Install Playwright browsers
|
|
run: pnpm exec playwright install --with-deps
|
|
|
|
- name: Run Playwright tests (production)
|
|
env:
|
|
E2E_BASE_URL: https://www.orangecat.ch
|
|
E2E_TEST_USER_EMAIL: ${{ secrets.E2E_USER_EMAIL }}
|
|
E2E_TEST_USER_PASSWORD: ${{ secrets.E2E_USER_PASSWORD }}
|
|
run: pnpm exec playwright test tests/e2e/login-only.spec.ts tests/e2e/cat-pdf.live.spec.ts --reporter=line,github
|
|
|
|
- name: Upload Playwright report on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report
|
|
if-no-files-found: ignore
|