Skip to content

Commit b045a27

Browse files
jorsolslachiewicz
authored andcommitted
ci: Add JDK 17 (Final) and JDK 18-ea to build matrix
Signed-off-by: Jorge Solórzano <[email protected]>
1 parent 0177bc3 commit b045a27

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

.github/workflows/maven.yml

+15-23
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,32 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: GitHub CI
18+
name: Maven build
1919

2020
on: [push, pull_request]
2121

2222
jobs:
2323
build:
24-
24+
name: Java ${{ matrix.java }} (${{ matrix.distribution }}) - ${{ matrix.os }}
25+
runs-on: ${{ matrix.os }}
2526
strategy:
26-
matrix:
27-
os: [ubuntu-latest,windows-latest, macOS-latest]
28-
java: [8, 11, 16, 17-ea]
29-
jdk: [temurin, zulu]
3027
fail-fast: false
31-
32-
runs-on: ${{ matrix.os }}
33-
28+
matrix:
29+
os: ['ubuntu-latest', 'windows-latest', 'macOS-latest']
30+
java: ['8', '11', '16', '17']
31+
distribution: ['temurin', 'zulu']
32+
include:
33+
- java: '18-ea'
34+
distribution: 'zulu'
35+
os: 'ubuntu-latest'
3436
steps:
3537
- name: Checkout
36-
uses: actions/[email protected]
37-
38-
- name: Set up cache for ~./m2/repository
39-
uses: actions/[email protected]
40-
with:
41-
path: ~/.m2/repository
42-
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
43-
restore-keys: |
44-
maven-${{ matrix.os }}-java${{ matrix.java }}-
45-
maven-${{ matrix.os }}-
46-
47-
- name: Set up JDK
38+
uses: actions/checkout@v2
39+
- name: Set up JDK ${{ matrix.Java }} (${{ matrix.distribution }})
4840
uses: actions/setup-java@v2
4941
with:
50-
distribution: ${{ matrix.jdk }}
42+
distribution: ${{ matrix.distribution }}
5143
java-version: ${{ matrix.java }}
52-
44+
cache: 'maven'
5345
- name: Build with Maven
5446
run: mvn install javadoc:javadoc -e -B -V -Pno-tests-if-not-on-osx

0 commit comments

Comments
 (0)