Skip to content

Commit

Permalink
Attempt to fix failing YAML tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta committed Dec 23, 2024
1 parent 9db6dc1 commit 7d348eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
16 changes: 1 addition & 15 deletions .github/actions/run-released-opensearch/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@ outputs:
runs:
using: composite
steps:
- name: Restore cached OpenSearch distro
id: cache-restore
uses: actions/cache/restore@v3
with:
path: opensearch-*
key: opensearch-${{ inputs.version }}-${{ runner.os }}


- name: Download OpenSearch
if: steps.cache-restore.outputs.cache-hit != 'true'
shell: bash -eo pipefail {0}
run: |
if [[ "$RUNNER_OS" != "Windows" ]]; then
Expand All @@ -38,13 +31,6 @@ runs:
rm -f opensearch-*.zip
fi
- name: Save cached OpenSearch distro
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: opensearch-*
key: opensearch-${{ inputs.version }}-${{ runner.os }}

- name: Start OpenSearch
id: opensearch
uses: ./client/.github/actions/start-opensearch
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,19 @@ jobs:
- name: Setup Rust tools
uses: ./client/.github/actions/setup-rust-tools

- name: Run OpenSearch
id: opensearch
uses: ./client/.github/actions/run-released-opensearch
with:
version: ${{ matrix.version }}
secured: ${{ matrix.secured }}

- name: Run integration tests
working-directory: client
run: cargo make test-yaml
env:
OPENSEARCH_URL: ${{ steps.opensearch.outputs.opensearch_url }}
OPENSEARCH_PASSWORD: ${{ steps.opensearch.outputs.admin_password }}
STACK_VERSION: ${{ matrix.version }}
SECURE_INTEGRATION: ${{ matrix.secured }}

- uses: codecov/codecov-action@v5
with:
Expand Down

0 comments on commit 7d348eb

Please sign in to comment.