Skip to content

Commit f0b6ed2

Browse files
committed
Update GitHub action
1 parent 29e4bbc commit f0b6ed2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Coding Standards and Tests
22

3-
on: [push]
3+
on: [ push ]
44

55
env:
66
WP_TESTS_DIR: /github/home/wp-tests/wordpress-tests-lib
@@ -10,8 +10,12 @@ jobs:
1010

1111
test:
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
php-version: [ 5.6, 7.3, 7.4 ]
16+
wordpress-version: [ latest ]
1317
container:
14-
image: junaidbhura/wp-tests:php-7.3
18+
image: junaidbhura/wp-tests:php-${{ matrix.php-version }}
1519
services:
1620
mysql:
1721
image: mysql:5.7.27
@@ -45,7 +49,7 @@ jobs:
4549
4650
- name: Install WordPress test suite
4751
run: |
48-
bash bin/install-wp-tests.sh wordpress_test root root mysql latest
52+
bash bin/install-wp-tests.sh wordpress_test root root mysql ${{ matrix.wordpress-version }}
4953
5054
- name: Coding standards
5155
run: $HOME/.composer/vendor/bin/phpcs phpcs.ruleset.xml

0 commit comments

Comments
 (0)