Skip to content

ci(e2e): fix e2e tests #13

ci(e2e): fix e2e tests

ci(e2e): fix e2e tests #13

Workflow file for this run

name: E2E Tests
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
e2e:
name: E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 15
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: aet_request_test
ports:
- 5433:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 2s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
cache-dependency-path: |
client/package-lock.json
e2e/package-lock.json
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
working-directory: server
- name: Set up Python
run: cd server && uv python install
- name: Install server dependencies
run: cd server && uv sync --locked
- name: Install client dependencies
run: cd client && npm ci
- name: Install e2e dependencies
run: cd e2e && npm ci
- name: Install Playwright browsers
run: cd e2e && npx playwright install chromium --with-deps
- name: Run e2e tests
run: cd e2e && npx playwright test
env:
CI: true
- name: Upload test report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 14