Skip to content

Commit

Permalink
Fix PHPUnit tests by updating the database health check (#375)
Browse files Browse the repository at this point in the history
* Update health cmd for mariadb service
* Update phpunit polyfills
  • Loading branch information
noahtallen authored Feb 7, 2024
1 parent 0a9d13d commit 643cec3
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 191 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=5s --health-retries=5
options: --health-cmd="healthcheck.sh --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- name: Check out source code
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"wp-coding-standards/wpcs": "^2.3",
"johnpbloch/wordpress-core": "6.1.1",
"wp-phpunit/wp-phpunit": "6.1.1",
"yoast/phpunit-polyfills": "1.0.4",
"yoast/phpunit-polyfills": "1.1.0",
"wp-cli/wp-cli": "*"
},
"config": {
Expand Down
Loading

0 comments on commit 643cec3

Please sign in to comment.