Skip to content

Commit 9f5c693

Browse files
committed
Update GitHub action
1 parent c4f3386 commit 9f5c693

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@ jobs:
4747
composer global require wp-coding-standards/wpcs
4848
$HOME/.composer/vendor/bin/phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
4949
50-
- name: Install WordPress test suite
50+
- name: Wait for MySQL
5151
run: |
52-
bash bin/install-wp-tests.sh wordpress_test root root mysql ${{ matrix.wordpress-version }}
52+
while ! mysqladmin ping -h mysql -u root -p${MYSQL_ROOT_PASSWORD}; do
53+
sleep 1
54+
done
55+
56+
- name: Install WordPress test suite
57+
run: bash bin/install-wp-tests.sh wordpress_test root root mysql ${{ matrix.wordpress-version }}
5358

5459
- name: Coding standards
5560
run: $HOME/.composer/vendor/bin/phpcs phpcs.ruleset.xml

0 commit comments

Comments
 (0)