add e2e tests to PR template

This commit is contained in:
Josh Hawkins 2026-04-06 12:07:28 -05:00
parent 0ca825d91c
commit e80c05e304

View File

@ -50,6 +50,41 @@ jobs:
# run: npm run test # run: npm run test
# working-directory: ./web # working-directory: ./web
web_e2e:
name: Web - E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 20.x
- run: npm install
working-directory: ./web
- name: Install Playwright Chromium
run: npx playwright install chromium --with-deps
working-directory: ./web
- name: Build web for E2E
run: npm run e2e:build
working-directory: ./web
- name: Generate mock data
run: |
pip install -r docker/main/requirements-dev.txt 2>/dev/null || true
PYTHONPATH=. python3 web/e2e/fixtures/mock-data/generate-mock-data.py
- name: Run E2E tests
run: npm run e2e
working-directory: ./web
- name: Upload test artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: |
web/test-results/
web/playwright-report/
retention-days: 7
python_checks: python_checks:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Python Checks name: Python Checks