Add automated testing infrastructure (Vitest + Playwright E2E) #110

Merged
litruv merged 12 commits from issue-109-automated-testing into main 2026-11-03 13:51:15 +11:00
Showing only changes of commit 4eff64b251 - Show all commits
+6 -1
View File
@@ -52,6 +52,10 @@ jobs:
working-directory: ./cinny
run: npm ci --prefer-offline
# Electron needs system libraries the runner image does not ship.
- name: Install system libraries for Electron
run: npx playwright install-deps
# The runner image has no xvfb and no fresh apt lists.
- name: Ensure a display for Electron
run: command -v xvfb-run >/dev/null || (sudo apt-get update && sudo apt-get install -y xvfb)
@@ -59,9 +63,10 @@ jobs:
- name: Run login E2E
run: xvfb-run -a npm run test:e2e
# Gitea implements the v3 artifact protocol; v4 rejects it as GHES.
- name: Upload test artifacts
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: e2e-artifacts
path: |