Fix integration tests with unreleased versions of OpenSearch. (#798)
Signed-off-by: dblock <[email protected]>
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user