Skip to content

Commit

Permalink
Re-add integration tests with OpenSeearch 1.x.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Apr 25, 2022
1 parent 52115ec commit 2eb2732
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test-integration-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 11 ]
entry:
# - { ref: '1.x', java: 11 }
# - { ref: '2.x', java: 11 }
- { ref: '2.0', java: 11 }
# - { ref: 'main', java: 11 }
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
Expand All @@ -27,8 +31,8 @@ jobs:
- name: Checkout OpenSearch
uses: actions/checkout@v2
with:
repository: opensearch-project/opensearch
ref: ${{ env.OPENSEARCH_VERSION }}
repository: opensearch-project/OpenSearch
ref: ${{ matrix.ref }}
path: opensearch

- name: Assemble OpenSearch
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,32 @@ jobs:
fail-fast: false
matrix:
entry:
- { opensearch_version: "", java: 11 }
# - { opensearch_version: 1.0.0, java: 11 }
# - { opensearch_version: 1.0.1, java: 11 }
# - { opensearch_version: 1.1.0, java: 11 }
# - { opensearch_version: 1.2.0, java: 11 }
# - { opensearch_version: 1.2.1, java: 11 }
# - { opensearch_version: 1.2.2, java: 11 }
# - { opensearch_version: 1.2.3, java: 11 }
# - { opensearch_version: 1.2.4, java: 11 }
- { opensearch_version: 1.3.0, java: 11 }
steps:
- name: Set up JDK ${{ matrix.java }}
if: ${{ matrix.entry.opensearch_version != ''}}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.entry.java }}

- name: Checkout Branch
if: ${{ matrix.entry.opensearch_version != ''}}
uses: actions/checkout@v2

- name: Run Docker
if: ${{ matrix.entry.opensearch_version != ''}}
run: |
docker-compose --project-directory .ci/opensearch build --build-arg OPENSEARCH_VERSION=${{ matrix.entry.opensearch_version }}
docker-compose --project-directory .ci/opensearch up -d
sleep 60
- name: Run Integration Test
if: ${{ matrix.entry.opensearch_version != ''}}
run: ./gradlew clean integrationTest

- name: Stop Docker
if: ${{ matrix.entry.opensearch_version != ''}}
run: |
docker-compose --project-directory .ci/opensearch down

0 comments on commit 2eb2732

Please sign in to comment.