Skip to content

Commit e5e2fa5

Browse files
authored
Run tests on all Java LTS versions (#2153)
1 parent 88f4f32 commit e5e2fa5

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/test-server.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
java-version: [17, 21, 25]
1619

1720
steps:
1821
- uses: actions/checkout@v6
@@ -21,16 +24,16 @@ jobs:
2124
with:
2225
node-version: "20.x"
2326

24-
- name: Set up JDK 1.17
27+
- name: Set up JDK ${{ matrix.java-version }}
2528
uses: actions/setup-java@v5
2629
with:
27-
java-version: 17
30+
java-version: ${{ matrix.java-version }}
2831
java-package: jdk
2932
distribution: temurin
3033
cache: 'maven'
3134

3235
- name: Make mvnw executable
3336
run: chmod +x mvnw
3437

35-
- name: Build with Maven
38+
- name: Build with Maven (Java ${{ matrix.java-version }})
3639
run: ./mvnw -B -ntp verify

0 commit comments

Comments
 (0)