Refresh apt lists before installing xvfb on the runner.
This commit is contained in:
@@ -52,8 +52,9 @@ jobs:
|
||||
working-directory: ./cinny
|
||||
run: npm ci --prefer-offline
|
||||
|
||||
# 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 install -y xvfb
|
||||
run: command -v xvfb-run >/dev/null || (sudo apt-get update && sudo apt-get install -y xvfb)
|
||||
|
||||
- name: Run login E2E
|
||||
run: xvfb-run -a npm run test:e2e
|
||||
|
||||
Reference in New Issue
Block a user