diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index eb23ec6d0..d108bde1b 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -21,6 +21,11 @@ jobs: - name: Checkout Branch uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 21 + - name: Set env run: | opensearch_version=$(node -p "require('./package.json').opensearchDashboards.version") @@ -46,7 +51,7 @@ jobs: plugin-version: ${{ env.PLUGIN_VERSION }} - name: Run Opensearch with A Single Plugin Remote Cluster - uses: derek-ho/start-opensearch@v5 + uses: derek-ho/start-opensearch@v4 with: opensearch-version: ${{ env.OPENSEARCH_VERSION }} plugins: "file:$(pwd)/opensearch-security-${{ env.OPENSEARCH_VERSION }}.zip" @@ -54,7 +59,6 @@ jobs: admin-password: ${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} security_config_file: ${{ inputs.security_config_file }} port: 9202 - jdk-version: 21 - name: Check OpenSearch remote is running run: | @@ -62,14 +66,13 @@ jobs: shell: bash - name: Run Opensearch with security - uses: derek-ho/start-opensearch@v5 + uses: derek-ho/start-opensearch@v4 with: opensearch-version: ${{ env.OPENSEARCH_VERSION }} plugins: "file:$(pwd)/${{ env.PLUGIN_NAME }}.zip" security-enabled: true admin-password: ${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} port: 9200 - jdk-version: 21 # https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 - name: Remove unnecessary files Linux