Skip to content

Commit 687c36c

Browse files
committed
Run CI on multiple Java versions
1 parent 360380d commit 687c36c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ on:
1616

1717
jobs:
1818
build:
19-
2019
runs-on: ubuntu-latest
2120

21+
strategy:
22+
matrix:
23+
java_version: [ '8', '11', '17', '21' ]
24+
fail-fast: false
25+
2226
steps:
2327
- uses: actions/checkout@v4
24-
- name: Set up JDK 8
28+
- name: Set up JDK
2529
uses: actions/setup-java@v4
2630
with:
27-
java-version: '8'
31+
java-version: ${{ matrix.java_version }}
2832
distribution: 'temurin'
2933
cache: maven
3034
- name: Build with Maven

0 commit comments

Comments
 (0)