Skip to content

Commit

Permalink
use setup-java for unit tests, since Java 21 is not built-in
Browse files Browse the repository at this point in the history
  • Loading branch information
xvrl committed Oct 4, 2023
1 parent edfdc0f commit 1fe8d6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/reusable-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ jobs:
with:
fetch-depth: 0

- name: setup jdk${{ inputs.jdk }}
run: echo "JAVA_HOME=$JAVA_HOME_${{ inputs.jdk }}_X64" >> $GITHUB_ENV
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ inputs.jdk }}
cache: 'maven'

- name: Restore Maven repository
id: maven-restore
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/unit-and-integration-tests-unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v3

- name: setup jdk${{ matrix.jdk }}
run: |
echo "JAVA_HOME=$JAVA_HOME_${{ matrix.jdk }}_X64" >> $GITHUB_ENV
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.jdk }}
cache: 'maven'

- name: Cache Maven m2 repository
id: maven
Expand Down

0 comments on commit 1fe8d6d

Please sign in to comment.