From 5b9b25198e5db463aa84f6aed479b43437c26f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 21 Oct 2024 22:03:20 +0200 Subject: [PATCH] Add `--warning-mode none` when assembling OpenSearch in CI (#231) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add `--warning-mode none` when assembling OpenSearch in CI This should hopefully fix the integration test with unreleased OpenSearch versions, as per: https://github.com/opensearch-project/opensearch-php/pull/229#pullrequestreview-2382054150 Signed-off-by: Tim Düsterhus * Build OpenSearch with Temurin 21 The OpenJDK installed by default appears to be: > JDK Version : 11 (Eclipse Temurin JDK) which apparently is too old. Signed-off-by: Tim Düsterhus --------- Signed-off-by: Tim Düsterhus --- .github/workflows/test_unreleased.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_unreleased.yml b/.github/workflows/test_unreleased.yml index c502bf0d..7cf27432 100644 --- a/.github/workflows/test_unreleased.yml +++ b/.github/workflows/test_unreleased.yml @@ -50,10 +50,16 @@ jobs: path: opensearch/distribution/archives/linux-tar/build/distributions key: ${{ steps.get-key.outputs.key }} + - uses: actions/setup-java@v4 + if: steps.cache-restore.outputs.cache-hit != 'true' + with: + distribution: "temurin" + java-version: "21" + - name: Assemble OpenSearch if: steps.cache-restore.outputs.cache-hit != 'true' working-directory: opensearch - run: ./gradlew :distribution:archives:linux-tar:assemble + run: ./gradlew :distribution:archives:linux-tar:assemble --warning-mode none - name: Save cached build if: steps.cache-restore.outputs.cache-hit != 'true'