fix(e2e): consolidate frontend E2E to Cypress and restore CI (#967) #2768
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: Test-e2e | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Test-e2e | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12.3' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.12.1' | |
| cache: 'yarn' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| python3-setuptools \ | |
| python3-virtualenv \ | |
| python3-pip \ | |
| libxml2-dev \ | |
| libxslt-dev | |
| - name: Create venv and install Python deps (no Playwright — Cypress ships its own browser) | |
| run: | | |
| pip install --upgrade pip setuptools virtualenv | |
| virtualenv -p python3 venv | |
| make install-deps-python | |
| - name: Install Node deps (root for Cypress, frontend for build) | |
| run: | | |
| yarn install | |
| make install-deps-typescript | |
| - name: Seed e2e database (schema from models via create_all, data from checked-in fixture) | |
| run: make e2e-db | |
| - name: Run Cypress e2e | |
| run: make e2e | |
| - name: Upload Cypress screenshots on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cypress-screenshots | |
| path: cypress/screenshots | |
| if-no-files-found: ignore |