We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9f6b35 commit 72b9dc4Copy full SHA for 72b9dc4
.github/workflows/spio.yml
@@ -32,7 +32,7 @@ jobs:
32
DB_NAME: wordpress_test
33
DB_USER: root
34
DB_PASS: password
35
- DB_HOST: 127.0.0.1
+ DB_HOST: 127.0.0.1:3306
36
WP_RUN_CORE_TESTS: 1
37
38
steps:
@@ -59,6 +59,19 @@ jobs:
59
- name: Install Composer dependencies
60
run: composer install --no-interaction --prefer-dist
61
62
+ - name: Test that MySQL works properly
63
+ run: |
64
+ timeout=30
65
+ while ! mysqladmin ping -h "127.0.0.1" --user="$DB_USER" --password="$DB_PASS" --silent; do
66
+ >&2 echo "MySQL is unavailable - sleeping"
67
+ sleep 1
68
+ timeout=$((timeout-1))
69
+ if [ $timeout -eq 0 ]; then
70
+ >&2 echo "MySQL still not responding, aborting."
71
+ exit 1
72
+ fi
73
+ done
74
+
75
- name: Install WordPress Unit Test Suite
76
run: |
77
mkdir -p "${WP_TESTS_DIR}"
0 commit comments