Skip to content

Commit 643cec3

Browse files
authored
Fix PHPUnit tests by updating the database health check (#375)
* Update health cmd for mariadb service * Update phpunit polyfills
1 parent 0a9d13d commit 643cec3

File tree

3 files changed

+162
-191
lines changed

3 files changed

+162
-191
lines changed

.github/workflows/ci-php.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
MYSQL_ROOT_PASSWORD: root
3333
ports:
3434
- 3306
35-
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=5s --health-retries=5
35+
options: --health-cmd="healthcheck.sh --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3
3636
steps:
3737
- name: Check out source code
3838
uses: actions/[email protected]

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"wp-coding-standards/wpcs": "^2.3",
1313
"johnpbloch/wordpress-core": "6.1.1",
1414
"wp-phpunit/wp-phpunit": "6.1.1",
15-
"yoast/phpunit-polyfills": "1.0.4",
15+
"yoast/phpunit-polyfills": "1.1.0",
1616
"wp-cli/wp-cli": "*"
1717
},
1818
"config": {

0 commit comments

Comments
 (0)