Skip to content

Commit 549a4ad

Browse files
committed
Upgraded Java version in workflows (II)
- Updated tests.yml workflow
1 parent 7726b9a commit 549a4ad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ jobs:
3333
uses: actions/setup-java@v4
3434
with:
3535
distribution: 'temurin'
36-
java-version: ${{ startsWith(matrix.version, '1.16') && '11' || (startsWith(matrix.version, '1.17') && '16' || '21') }}
36+
java-version: ${{
37+
startsWith(matrix.version, '1.16') && '11' ||
38+
startsWith(matrix.version, '1.17') && '16' ||
39+
startsWith(matrix.version, '1.18') && '17' ||
40+
startsWith(matrix.version, '1.19') && '17' ||
41+
'21'
42+
}}
3743

3844
# Setup Node.js
3945
- name: Setup Node.js

0 commit comments

Comments
 (0)