Add support for Point In Time APIs #194
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: YAML Tests | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: {} | |
jobs: | |
test-yaml: | |
name: YAML Tests (Released OpenSearch) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ '1.2.4', '1.3.11', '2.2.0', '2.4.0', '2.6.0', '2.8.0', '2.9.0' ] | |
steps: | |
- name: Checkout Client | |
uses: actions/checkout@v3 | |
with: | |
path: client | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.?sproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Run OpenSearch | |
id: opensearch | |
uses: ./client/.github/actions/run-released-opensearch | |
with: | |
version: ${{ matrix.version }} | |
secured: true | |
- name: Run YAML tests | |
working-directory: client | |
run: | | |
dotnet run \ | |
--project ./tests/Tests.YamlRunner/Tests.YamlRunner.fsproj \ | |
-- \ | |
--endpoint $OPENSEARCH_URL \ | |
--auth-cert ./.ci/certs/kirk.p12 \ | |
--auth-cert-pass kirk \ | |
--junit-output-file ./test-results.xml | |
env: | |
OPENSEARCH_URL: ${{ steps.opensearch.outputs.opensearch_url }} | |
- name: Save OpenSearch logs | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: opensearch-logs-${{ matrix.version }} | |
path: | | |
opensearch-*/logs/* | |
- name: Upload test report | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: report-yaml-${{ matrix.version }} | |
path: client/test-results.xml | |
test-yaml-unreleased: | |
name: YAML Tests (Unreleased OpenSearch) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
opensearch_ref: ['1.x', '2.x', 'main'] | |
steps: | |
- name: Checkout Client | |
uses: actions/checkout@v3 | |
with: | |
path: client | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.?sproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Restore or Build OpenSearch | |
id: opensearch_build | |
uses: ./client/.github/actions/build-opensearch | |
with: | |
ref: ${{ matrix.opensearch_ref }} | |
- name: Unpack OpenSearch | |
run: tar -xzf ${{ steps.opensearch_build.outputs.distribution }} | |
- name: Start OpenSearch | |
id: opensearch | |
uses: ./client/.github/actions/start-opensearch | |
- name: Run YAML tests | |
working-directory: client | |
run: | | |
dotnet run \ | |
--project ./tests/Tests.YamlRunner/Tests.YamlRunner.fsproj \ | |
-- \ | |
--endpoint $OPENSEARCH_URL \ | |
--junit-output-file ./test-results.xml | |
env: | |
OPENSEARCH_URL: ${{ steps.opensearch.outputs.opensearch_url }} | |
- name: Save OpenSearch logs | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: opensearch-logs-${{ matrix.opensearch_ref }} | |
path: | | |
opensearch-*/logs/* | |
- name: Upload test report | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: report-yaml-unreleased-${{ matrix.opensearch_ref }} | |
path: client/test-results.xml |