diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 1ece209..e7d4609 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -73,13 +73,8 @@ jobs: coverage: none tools: composer, phpunit - - name: Validate composer.json and composer.lock - run: composer validate - - name: Install dependencies - run: | - composer update --no-interaction --prefer-dist - composer install --prefer-dist --no-progress + run: composer install --prefer-dist --no-progress - name: Install WordPress Test Suite env: diff --git a/composer.json b/composer.json index a28b648..3cb064f 100644 --- a/composer.json +++ b/composer.json @@ -16,8 +16,8 @@ "role": "Developer" } ], - "requires": { - "php": ">=7.1" + "require": { + "php": ">=7.4" }, "require-dev": { "szepeviktor/phpstan-wordpress": "^1", @@ -28,7 +28,7 @@ "dealerdirect/phpcodesniffer-composer-installer": "^1", "phpcompatibility/phpcompatibility-wp": "^2", "yoast/phpunit-polyfills": "^3", - "phpunit/phpunit": "^7.5 || ^8.5" + "phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5 || ^8.5" }, "config": { "allow-plugins": {