Skip to content

Commit e5bcedc

Browse files
committed
Github Actions: Add Java 25 target
1 parent 2ca0676 commit e5bcedc

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

‎.github/workflows/maven-test.yml‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
name: JDK21 Build and Test
1+
name: JDK Build and Test
22

33
on: [ push, pull_request ]
44

55

66
jobs:
77
build:
88

9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- java: 21
14+
release: 21
15+
- java: 25
16+
release: 21
17+
- java: 25
18+
release: 25
19+
920
runs-on: ubuntu-latest
1021
env:
1122
TZ: "Europe/London"
@@ -16,10 +27,10 @@ jobs:
1627
uses: zcong1993/setup-timezone@f28e5fb1ca95077c81b67be53bcd1923de2175ed
1728
with:
1829
timezone: Europe/London
19-
- name: Set up JDK 21
30+
- name: Set up JDK ${{ matrix.java }}
2031
uses: actions/setup-java@v2
2132
with:
22-
java-version: 21
33+
java-version: ${{ matrix.java }}
2334
distribution: zulu
2435
# Step that does that actual cache save and restore
2536
- uses: actions/cache@v4.2.2
@@ -29,7 +40,7 @@ jobs:
2940
restore-keys: |
3041
${{ runner.os }}-maven-
3142
- name: Build with Maven
32-
run: mvn -T3 -B test --file pom.xml
43+
run: mvn -T3 -B clean verify -Djavalang.version=${{ matrix.release }} --file pom.xml
3344
- name: Publish Test Report
3445
if: ${{ always() }}
3546
uses: scacap/action-surefire-report@1a128e49c0585bc0b8e38e541ac3b6e35a5bc727

0 commit comments

Comments
 (0)