From 4eff64b2513175013fc6080afa78fc1373900a0d Mon Sep 17 00:00:00 2001 From: litruv Date: Tue, 3 Nov 2026 11:15:40 +1100 Subject: [PATCH] Install Electron's system libraries and use the v3 artifact protocol on the runner. upload-artifact@v4 rejects Gitea as GHES. Playwright's Electron launch failed on the runner before the test ran, so install-deps runs first. --- .gitea/workflows/tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index e0757ca..5506b8d 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -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: |