Skip to content

Commit

Permalink
phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Sep 28, 2021
1 parent 383c6be commit 2bbb698
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/push-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
wp: latest
- php: 7.3
wp: 5.7
- php: 7.3
- php: 7.2
wp: 5.2

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

- name: Install phpunit global
run: |
composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*"
phpunit --version
- name: Composer install
run: composer install --optimize-autoloader --prefer-dist

- name: Install WP Tests
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp }} true

- name: Build
run: |
bash ./bin/build.sh
- name: Install phpunit global
run: |
composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*"
phpunit --version
- name: phpunit tests
run: |
phpunit
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"email": "mail@torounit.com"
}
],
"require": {},
"require": {
"php": ">=5.6"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*",
Expand Down

0 comments on commit 2bbb698

Please sign in to comment.