Skip to content

Commit 24d93a0

Browse files
committed
Run CI on multiple Java versions
1 parent 360380d commit 24d93a0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/maven.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,20 @@ on:
1616

1717
jobs:
1818
build:
19-
19+
name: Java ${{ matrix.java_version }}
2020
runs-on: ubuntu-latest
2121

22+
strategy:
23+
matrix:
24+
java_version: [ '8', '11', '17', '21' ]
25+
fail-fast: false
26+
2227
steps:
2328
- uses: actions/checkout@v4
24-
- name: Set up JDK 8
29+
- name: Set up JDK
2530
uses: actions/setup-java@v4
2631
with:
27-
java-version: '8'
32+
java-version: ${{ matrix.java_version }}
2833
distribution: 'temurin'
2934
cache: maven
3035
- name: Build with Maven

0 commit comments

Comments
 (0)