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.
This commit is contained in:
@@ -52,6 +52,10 @@ jobs:
|
|||||||
working-directory: ./cinny
|
working-directory: ./cinny
|
||||||
run: npm ci --prefer-offline
|
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.
|
# The runner image has no xvfb and no fresh apt lists.
|
||||||
- name: Ensure a display for Electron
|
- name: Ensure a display for Electron
|
||||||
run: command -v xvfb-run >/dev/null || (sudo apt-get update && sudo apt-get install -y xvfb)
|
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
|
- name: Run login E2E
|
||||||
run: xvfb-run -a npm run test:e2e
|
run: xvfb-run -a npm run test:e2e
|
||||||
|
|
||||||
|
# Gitea implements the v3 artifact protocol; v4 rejects it as GHES.
|
||||||
- name: Upload test artifacts
|
- name: Upload test artifacts
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: e2e-artifacts
|
name: e2e-artifacts
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
Reference in New Issue
Block a user