Skip to content

Commit

Permalink
[ZTAT-947] Add more Java versions to CI (#39)
Browse files Browse the repository at this point in the history
* ztat-947: Adding more Java versions to CI

* ztat-947 remove Java 23 from CI
  • Loading branch information
DenitsaTH authored Oct 15, 2024
1 parent 1ccc698 commit 6425e95
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,32 @@ jobs:
build-and-test:
name: Java CI - test
runs-on: ubuntu-latest

strategy:
matrix:
java-version: [1.8, 11, 17, 21]

steps:
- uses: actions/checkout@v2

- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: ${{ matrix.java-version }}

- name: Inject dummy example config
working-directory: duo-example
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

- name: Build and test with Maven
run: mvn -B install

- name: Lint with checkstyle
run: mvn checkstyle:check

- name: Verify example starts
working-directory: duo-example
run: mvn spring-boot:start

- name: Verify release profile works
run: mvn -P release package

0 comments on commit 6425e95

Please sign in to comment.