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