Skip to content

Commit

Permalink
wait mysql on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nojimage committed May 1, 2024
1 parent 1a4448a commit 37a7a42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ jobs:
composer update
fi
- name: Wait for MySQL
if: matrix.db-type == 'mysql' || matrix.db-type == 'mysql:8.0'
run: while ! `mysqladmin ping -h 127.0.0.1 --silent`; do printf 'Waiting for MySQL...\n'; sleep 2; done;

- name: Run PHPUnit
env:
REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
Expand Down

0 comments on commit 37a7a42

Please sign in to comment.