Skip to content

Commit ff1dbbd

Browse files
committed
Refactor build and test steps in Maven workflow for improved readability
1 parent 5162c8a commit ff1dbbd

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/java-ea-maven.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,5 @@ jobs:
3535
- name: Pre-download dependencies with Maven
3636
run: mvn -U dependency:go-offline
3737

38-
- name: Build and (headless) test with Maven (Linux)
39-
if: ${{ runner.os == 'Linux' }}
40-
run: xvfb-run mvn install
41-
42-
- name: Build and (headless) test with Maven (Windows and macOS)
43-
if: ${{ runner.os != 'Linux' }}
44-
run: mvn install
38+
- name: Build and (headless) test with Maven
39+
run: ${{ runner.os == 'Linux' && 'xvfb-run' || '' }} mvn install

.github/workflows/java8-maven.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,8 @@ jobs:
3434
- name: Pre-download dependencies with Maven
3535
run: mvn -U dependency:go-offline
3636

37-
- name: Build and (headless) test with Maven (Linux)
38-
if: ${{ runner.os == 'Linux' }}
39-
run: xvfb-run mvn -U install
40-
41-
- name: Build and (headless) test with Maven (Windows and macOS)
42-
if: ${{ runner.os != 'Linux' }}
43-
run: mvn -U install
37+
- name: Build and (headless) test with Maven
38+
run: ${{ runner.os == 'Linux' && 'xvfb-run' || '' }} mvn install
4439

4540
auto-merge-job:
4641
needs: build-and-test-job

0 commit comments

Comments
 (0)