Only install xvfb if not available

This commit is contained in:
pfirpfel
2022-04-20 08:24:19 +02:00
parent 6f4f7e7a20
commit db7d068d3c

View File

@@ -19,8 +19,8 @@ jobs:
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Install virtual framebuffer to allow running GUI on a headless server
run: sudo apt update && sudo apt install -y xvfb
- name: Install virtual framebuffer (if not available) to allow running GUI on a headless server
run: command -v Xvfb >/dev/null 2>&1 || { sudo apt update && sudo apt install -y xvfb; }
- name: Run tests in virtual framebuffer
run: |