Add automated testing infrastructure (Vitest + Playwright E2E) #110
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user