Skip to content

Commit 2bbb698

Browse files
committed
phpunit
1 parent 383c6be commit 2bbb698

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/push-test-deploy.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
wp: latest
2424
- php: 7.3
2525
wp: 5.7
26-
- php: 7.3
26+
- php: 7.2
2727
wp: 5.2
2828

2929
name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test
@@ -40,21 +40,18 @@ jobs:
4040
- name: Check PHP Version
4141
run: php -v
4242

43-
- name: Install phpunit global
44-
run: |
45-
composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*"
46-
phpunit --version
47-
48-
- name: Composer install
49-
run: composer install --optimize-autoloader --prefer-dist
50-
5143
- name: Install WP Tests
5244
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp }} true
5345

5446
- name: Build
5547
run: |
5648
bash ./bin/build.sh
5749
50+
- name: Install phpunit global
51+
run: |
52+
composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*"
53+
phpunit --version
54+
5855
- name: phpunit tests
5956
run: |
6057
phpunit

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"email": "[email protected]"
1010
}
1111
],
12-
"require": {},
12+
"require": {
13+
"php": ">=5.6"
14+
},
1315
"require-dev": {
1416
"dealerdirect/phpcodesniffer-composer-installer": "*",
1517
"phpcompatibility/phpcompatibility-wp": "*",

0 commit comments

Comments
 (0)