Skip to content

Commit

Permalink
Fix headless tests in GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Oct 15, 2024
1 parent b8ef2b9 commit f397419
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/java-ea-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build and (headless) test with Maven
uses: smithki/[email protected]
with:
run: mvn -U -B -ntp verify
- name: Build and (headless) test with Maven (Linux)
if: ${{ runner.os == 'Linux' }}
run: xvfb-run mvn -U -B -ntp verify

- name: Build and (headless) test with Maven (Windows and macOS)
if: ${{ runner.os != 'Linux' }}
run: mvn -U -B -ntp verify
11 changes: 7 additions & 4 deletions .github/workflows/java8-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ jobs:
max_attempts: 3
timeout_minutes: 5

- name: Build and (headless) test with Maven
uses: smithki/[email protected]
with:
run: mvn -U -B -ntp verify
- name: Build and (headless) test with Maven (Linux)
if: ${{ runner.os == 'Linux' }}
run: xvfb-run mvn -U -B -ntp verify

- name: Build and (headless) test with Maven (Windows and macOS)
if: ${{ runner.os != 'Linux' }}
run: mvn -U -B -ntp verify

auto-merge-job:
needs: build-and-test-job
Expand Down

0 comments on commit f397419

Please sign in to comment.