Skip to content

Commit d7400d7

Browse files
committed
fix sniffer and phpunit
1 parent 88d53e2 commit d7400d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test-php.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ jobs:
3939
env:
4040
MYSQL_ROOT_PASSWORD: root
4141
ports:
42-
- 3306
42+
- 3306/tcp
4343
volumes:
4444
- $HOME/mysql:/var/lib/mysql
45+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
4546
steps:
4647
- name: Setup PHP version
4748
uses: shivammathur/setup-php@v1
@@ -53,7 +54,7 @@ jobs:
5354
uses: actions/checkout@v2
5455
- name: Install WordPress Test Suite
5556
run: |
56-
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 5.2.2
57+
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports['3306'] }} 5.2.2
5758
- name: Get Composer Cache Directory
5859
id: composer-cache
5960
run: |

src/Loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ final class Loader {
5555
'translate',
5656
'review',
5757
'recommendation',
58-
'notification'
58+
'notification',
5959

6060
];
6161

0 commit comments

Comments
 (0)