* Breaking changes for type removal Signed-off-by: Vacha Shah <vachshah@amazon.com> * Adding support to test against unreleased OpenSearch Signed-off-by: Vacha Shah <vachshah@amazon.com> * Formatting Signed-off-by: Vacha Shah <vachshah@amazon.com> * Addressing comments to refactor run-opensearch.sh Signed-off-by: Vacha Shah <vachshah@amazon.com>
35 lines
991 B
YAML
35 lines
991 B
YAML
name: Integration with Unreleased OpenSearch
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
|
|
env:
|
|
OPENSEARCH_VERSION: '2.0'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout OpenSearch
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: opensearch-project/opensearch
|
|
ref: ${{ env.OPENSEARCH_VERSION }}
|
|
path: opensearch
|
|
|
|
# This step builds the docker image tagged as opensearch:test. It will be further used in /ci/run-tests to test against unreleased OpenSearch.
|
|
# Reference: https://github.com/opensearch-project/OpenSearch/blob/2.0/distribution/docker/build.gradle#L190
|
|
- name: Assemble OpenSearch
|
|
run: |
|
|
cd opensearch
|
|
./gradlew assemble
|
|
- name: Checkout Python Client
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run Integration Test
|
|
run: "./.ci/run-tests opensearch false ${{ env.OPENSEARCH_VERSION }}.0-SNAPSHOT" |