Skip to content

Commit

Permalink
UHF-8762: Static sleep for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Jan 18, 2024
1 parent b463a7a commit 759bf29
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,7 @@ jobs:
- name: Start project
working-directory: ${{ env.DRUPAL_ROOT }}
run: docker compose up -d --wait

- name: Wait for project to start
working-directory: ${{ env.DRUPAL_ROOT }}
run: |
counter=0
until [ $counter -gt 5 ]
do
docker compose exec app bash -c "\$(drush sql:connect) -e '\q'" 2> /dev/null
if [ $? -eq 0 ]; then
break
fi
echo "Database is not up yet ..."
((counter++))
sleep 2
done
run: docker compose up -d --wait && sleep 5

- name: Setup Drupal
working-directory: ${{ env.DRUPAL_ROOT }}
Expand Down

0 comments on commit 759bf29

Please sign in to comment.