Skip to content

Commit 424aa67

Browse files
committed
Upgraded Java version in workflows (III)
- Updated tests.yml workflow
1 parent 549a4ad commit 424aa67

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ jobs:
3333
uses: actions/setup-java@v4
3434
with:
3535
distribution: 'temurin'
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-
}}
36+
java-version: |
37+
${{
38+
startsWith(matrix.version, '1.16') && '11' ||
39+
startsWith(matrix.version, '1.17') && '16' ||
40+
startsWith(matrix.version, '1.18') && '17' ||
41+
startsWith(matrix.version, '1.19') && '17' ||
42+
'21'
43+
}}
4344
4445
# Setup Node.js
4546
- name: Setup Node.js

0 commit comments

Comments
 (0)