From 424aa67b6e44ddc90057da60fa5bf5910e8b520e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20Moreno?= Date: Sun, 26 May 2024 13:01:04 +0200 Subject: [PATCH] Upgraded Java version in workflows (III) - Updated tests.yml workflow --- .github/workflows/tests.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d77087..4a90089 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,13 +33,14 @@ jobs: uses: actions/setup-java@v4 with: distribution: 'temurin' - 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' - }} + 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