Skip to content

Commit 6425e95

Browse files
authored
[ZTAT-947] Add more Java versions to CI (#39)
* ztat-947: Adding more Java versions to CI * ztat-947 remove Java 23 from CI
1 parent 1ccc698 commit 6425e95

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/java-ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,32 @@ jobs:
1111
build-and-test:
1212
name: Java CI - test
1313
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
java-version: [1.8, 11, 17, 21]
18+
1419
steps:
1520
- uses: actions/checkout@v2
21+
1622
- name: Set up Java
1723
uses: actions/setup-java@v1
1824
with:
19-
java-version: 1.8
25+
java-version: ${{ matrix.java-version }}
26+
2027
- name: Inject dummy example config
2128
working-directory: duo-example
2229
run: printf "duo.clientId=DIAAAAAAAAAAAAAAAAAA\nduo.clientSecret=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nduo.api.host=example.duosecurity.com\nduo.redirect.uri=http://localhost:8080\nduo.failmode=CLOSED\n" > ./src/main/resources/application.properties
30+
2331
- name: Build and test with Maven
2432
run: mvn -B install
33+
2534
- name: Lint with checkstyle
2635
run: mvn checkstyle:check
36+
2737
- name: Verify example starts
2838
working-directory: duo-example
2939
run: mvn spring-boot:start
40+
3041
- name: Verify release profile works
3142
run: mvn -P release package

0 commit comments

Comments
 (0)