Fix integration tests with unreleased versions of OpenSearch. (#798)

Signed-off-by: dblock <[email protected]>
This commit is contained in:
Daniel (dB.) Doubrovkine
2024-08-15 08:21:11 -07:00
committed by GitHub
parent 377a7f41d1
commit 6382c1570c
+7 -4
View File
@@ -8,14 +8,17 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
opensearch_ref: [ '1.x', '2.x', 'main' ] entry:
- { branch: "1.x", java-version: "11" }
- { branch: "2.x", java-version: "17" }
- { branch: "main", java-version: "17" }
steps: steps:
- name: Checkout OpenSearch - name: Checkout OpenSearch
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: opensearch-project/opensearch repository: opensearch-project/opensearch
ref: ${{ matrix.opensearch_ref }} ref: ${{ matrix.entry.branch }}
path: opensearch path: opensearch
- name: Get OpenSearch branch top - name: Get OpenSearch branch top
@@ -32,8 +35,8 @@ jobs:
- uses: actions/setup-java@v4 - uses: actions/setup-java@v4
with: with:
distribution: 'temurin' # See 'Supported distributions' for available options distribution: "temurin"
java-version: '11' java-version: ${{ matrix.entry.java-version }}
- name: Assemble OpenSearch - name: Assemble OpenSearch
if: steps.cache-restore.outputs.cache-hit != 'true' if: steps.cache-restore.outputs.cache-hit != 'true'