Skip to content

Commit

Permalink
Upgraded Java version in workflows (II)
Browse files Browse the repository at this point in the history
- Updated tests.yml workflow
  • Loading branch information
josemmo committed May 26, 2024
1 parent 7726b9a commit 549a4ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ startsWith(matrix.version, '1.16') && '11' || (startsWith(matrix.version, '1.17') && '16' || '21') }}
java-version: ${{
startsWith(matrix.version, '1.16') && '11' ||
startsWith(matrix.version, '1.17') && '16' ||
startsWith(matrix.version, '1.18') && '17' ||
startsWith(matrix.version, '1.19') && '17' ||
'21'
}}

# Setup Node.js
- name: Setup Node.js
Expand Down

0 comments on commit 549a4ad

Please sign in to comment.