Skip to content

Commit

Permalink
Use ./gradlew run.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Apr 18, 2024
1 parent 2a1552c commit e006ae7
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/test_unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,14 @@ jobs:
working-directory: opensearch
run: echo key=`git log -1 --format='%H'` >> $GITHUB_OUTPUT

- name: Restore cached build
id: cache-restore
uses: actions/cache/restore@v3
with:
path: opensearch/distribution/archives/linux-tar/build/distributions
key: ${{ steps.get-key.outputs.key }}

- name: Assemble OpenSearch
if: steps.cache-restore.outputs.cache-hit != 'true'
working-directory: opensearch
run: ./gradlew :distribution:archives:linux-tar:assemble

- name: Save cached build
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: opensearch/distribution/archives/linux-tar/build/distributions
key: ${{ steps.get-key.outputs.key }}
run: ./gradlew assemble

- name: Run OpenSearch
working-directory: opensearch/distribution/archives/linux-tar/build/distributions
working-directory: opensearch
run: |
tar xf opensearch-min-*
echo "discovery.type: single-node" >> ./opensearch-*/config/opensearch.yml
./opensearch-*/bin/opensearch &
./gradlew run &
for attempt in {1..20}; do sleep 5; if curl -s localhost:9200; then echo '=====> ready'; break; fi; echo '=====> waiting...'; done
- name: Checkout PHP Client
Expand Down

0 comments on commit e006ae7

Please sign in to comment.