Skip to content

Commit a76e0bc

Browse files
committed
Trying to fix openjdk 11 error in workflows
1 parent a9542ca commit a76e0bc

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,37 @@ permissions:
1212
contents: read # to fetch code (actions/checkout)
1313

1414
jobs:
15-
test:
15+
testopenjdk:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
1919
# We do one OS only to reduce resource utilization. To do macOS to this would be needed:
2020
#os: [ubuntu-20.04, macOS-latest]
2121
os: [ubuntu-latest]
22-
java: [11, 17, 21]
22+
java: [17, 21]
23+
fail-fast: false
24+
max-parallel: 4
25+
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up JDK
30+
uses: actions/setup-java@v4
31+
with:
32+
distribution: 'oracle'
33+
java-version: ${{ matrix.java }}
34+
- name: Build, test and integration test
35+
run: mvn verify --no-transfer-progress
36+
37+
# Note that 11 is not available in openjdk. So we need to do it with the Zulu distribution (see https://github.com/actions/setup-java)
38+
testzulu:
39+
runs-on: ${{ matrix.os }}
40+
strategy:
41+
matrix:
42+
# We do one OS only to reduce resource utilization. To do macOS to this would be needed:
43+
#os: [ubuntu-20.04, macOS-latest]
44+
os: [ubuntu-latest]
45+
java: [11]
2346
fail-fast: false
2447
max-parallel: 4
2548
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}

0 commit comments

Comments
 (0)