From 2ec7174f204e916ad93c2320db12db7906c64b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Wed, 4 Oct 2023 14:30:36 -0700 Subject: [PATCH] use setup-java for unit tests, since Java 21 is not built-in --- .github/workflows/unit-and-integration-tests-unified.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-and-integration-tests-unified.yml b/.github/workflows/unit-and-integration-tests-unified.yml index 4be748b9fd25d..e28eaa943fbc7 100644 --- a/.github/workflows/unit-and-integration-tests-unified.yml +++ b/.github/workflows/unit-and-integration-tests-unified.yml @@ -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