Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
frontend/public/assets/*/*/questions/** filter=lfs diff=lfs merge=lfs -text
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Docker CI

on:
pull_request:
types: [opened, synchronize]

jobs:
test:
name: Full Stack Tests (Docker)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Services
run: docker compose build

- name: Run Generator Tests (Backend)
run: docker compose run --rm asset-generator pytest generator/tests/ -v

- name: Start Frontend
run: docker compose up -d frontend

- name: Wait for Frontend Ready
run: |
timeout 60s bash -c 'until curl --silent -f http://localhost:3000 > /dev/null; do echo "Waiting for frontend..."; sleep 2; done'

- name: Run Playwright Tests (Frontend)
run: docker compose run --rm playwright /bin/sh -c "npm ci && npx playwright install --with-deps chromium && npx playwright test"

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: frontend/playwright-report/
retention-days: 30
Loading
Loading