Skip to content

Commit

Permalink
Try compile step
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Oct 2, 2024
1 parent 48c087f commit 514877c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/run-cypress-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ runs:
fi
shell: bash

- name: Compile OpenSearch Dashboards
run: |
cd OpenSearch-Dashboards
node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers=10 --verbose
- name: Run OpenSearch Dashboards with provided configuration
if: ${{ runner.os == 'Linux' }}
run: |
Expand All @@ -80,12 +85,12 @@ runs:
run: |
cd ./OpenSearch-Dashboards
echo "Start checking OpenSearch Dashboards."
for i in {1..90}; do
for i in {1..60}; do
if grep -q "bundles compiled successfully after" "dashboard.log"; then
echo "OpenSearch Dashboards compiled successfully."
break
fi
if [ $i -eq 90 ]; then
if [ $i -eq 60 ]; then
echo "Timeout for 900 seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
fi
Expand Down

0 comments on commit 514877c

Please sign in to comment.