Skip to content

Commit 2e5f8d1

Browse files
committed
Run CI for different Java versions
1 parent 6e92429 commit 2e5f8d1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@ name: Java CI
33
on: [push]
44

55
jobs:
6-
build:
6+
run-the-tests:
77
runs-on: ubuntu-latest
88

9+
strategy:
10+
matrix:
11+
java-version: [ '17', '21', '22', '23', '24' ]
12+
fail-fast: false
13+
914
steps:
1015
- uses: actions/checkout@v4
11-
- name: Set up JDK 21
16+
- name: Set up JDK ${{ matrix.java-version }}
1217
uses: actions/setup-java@v4
1318
with:
14-
java-version: '21'
19+
java-version: ${{ matrix.java-version }}
1520
distribution: 'temurin'
1621
- name: Run tests in answers package
1722
run: mvn clean "-Dtest=answers.*Test" test

0 commit comments

Comments
 (0)