From e377ea6a843257c234071831454a7113f6b5a191 Mon Sep 17 00:00:00 2001 From: mkpaz Date: Sat, 11 Feb 2023 12:53:13 +0400 Subject: [PATCH] Fix tests fail under Ubuntu without X11 (GitHub Actions) --- .github/workflows/tagged-release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index f73ffac..d70bd52 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -29,8 +29,14 @@ jobs: - name: Build | Package styles run: mvn clean install -B --file styles/pom.xml - - name: Build | Package other modules + - name: Build | Package other modules (Unix) + # some tests won't start without X11 + run: xvfb-run mvn clean install -B -pl '!styles' --file pom.xml + if: matrix.os == 'ubuntu-latest' + + - name: Build | Package other modules (Windows) run: mvn clean install -B -pl '!styles' --file pom.xml + if: matrix.os == 'windows-latest' - name: Build | List artifacts (Unix) shell: sh