From 330c7f47357fde85dcccfff920498fce02779fdc Mon Sep 17 00:00:00 2001 From: Kimberly Meechan <24316371+K-Meech@users.noreply.github.com> Date: Mon, 8 Jul 2024 20:20:35 +0100 Subject: [PATCH] only use xvfb on ubuntu --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f5bc357..4fd2029 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,5 +61,10 @@ jobs: if: matrix.os == 'ubuntu-latest' run: sudo apt-get install xvfb - - name: Build with maven + - name: Build with maven and xvfb + if: matrix.os == 'ubuntu-latest' run: xvfb-run --auto-servernum mvn -B package --file pom.xml + + - name: Build with maven + if: matrix.os != 'ubuntu-latest' + run: mvn -B package --file pom.xml