File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ jobs:
1313 MYSQL_ROOT_PASSWORD : root
1414 MYSQL_DATABASE : wordpress_test
1515 ports :
16- - 3306/tcp
16+ - 3306/3306
1717 options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
1818 strategy :
1919 matrix :
2020 operating-system : [ ubuntu-latest ]
21- php-versions : [ '7.1', '7.2', '7.3' ]
22- name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
21+ php-versions : [ '7.2', '7.3', '7.4' ]
22+ wp : [ '5.4', '5.5', '5.6', 'latest' ]
23+ name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} with WP ${{ matrix.wp }}
2324 steps :
2425 - name : Checkout
2526 uses : actions/checkout@v1
@@ -31,14 +32,11 @@ jobs:
3132 coverage : xdebug # optional, setup coverage driver
3233 tools : psalm, phpcbf, phpcs, phpunit:5.7.27
3334
34- - name : Start mysql service
35- run : sudo /etc/init.d/mysql start && mysql -V
36-
3735 - name : Check PHP Version
3836 run : php -v
3937
4038 - name : Install WP Tests
41- run : bash bin/install-wp-tests.sh wordpress_test root root localhost latest
39+ run : bash bin/install-wp-tests.sh wordpress_test root root localhost ${{ matrix.wp }}
4240
4341 - name : phpunit tests
4442 run : phpunit
You can’t perform that action at this time.
0 commit comments