Skip to content

Commit

Permalink
add wait
Browse files Browse the repository at this point in the history
Signed-off-by: Ruchi Sharma <ruchi492@gmail.com>
  • Loading branch information
ruchidh committed Jan 31, 2025
1 parent 664d4de commit f6c03a7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/performance_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,27 @@ jobs:
- name: Run bootstrap
run: yarn osd bootstrap

# - name: Start OpenSearch Dashboards
# run: |
# yarn wait-on http://localhost:9200
# yarn start --no-base-path & yarn wait-on http://localhost:5601

- name: Wait for OpenSearch to be ready
run: |
until curl -s http://localhost:9200 >/dev/null; do
echo "Waiting for OpenSearch..."
sleep 10
done
echo "OpenSearch is up!"
- name: Start OpenSearch Dashboards
run: |
yarn wait-on http://localhost:9200
yarn start --no-base-path & yarn wait-on http://localhost:5601
yarn start --no-base-path &
until curl -s http://localhost:5601 >/dev/null; do
echo "Waiting for OpenSearch Dashboards..."
sleep 10
done
echo "OpenSearch Dashboards is up!"
- name: Mock data
run: |
Expand Down

0 comments on commit f6c03a7

Please sign in to comment.