From 2bbb698467899da40076ab799f8ea41c8873b299 Mon Sep 17 00:00:00 2001 From: Hiroshi Urabe Date: Tue, 28 Sep 2021 12:51:54 +0900 Subject: [PATCH] phpunit --- .github/workflows/push-test-deploy.yml | 15 ++++++--------- composer.json | 4 +++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/push-test-deploy.yml b/.github/workflows/push-test-deploy.yml index 1e0265d..d5fe7ce 100644 --- a/.github/workflows/push-test-deploy.yml +++ b/.github/workflows/push-test-deploy.yml @@ -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 @@ -40,14 +40,6 @@ 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 @@ -55,6 +47,11 @@ jobs: 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 diff --git a/composer.json b/composer.json index 7085bbd..9b5a01d 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,9 @@ "email": "mail@torounit.com" } ], - "require": {}, + "require": { + "php": ">=5.6" + }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "*", "phpcompatibility/phpcompatibility-wp": "*",