Skip to content

Commit

Permalink
Fixed composer
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jan 11, 2025
1 parent 24db5bf commit 9fa24f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"role": "Developer"
}
],
"requires": {
"php": ">=7.1"
"require": {
"php": ">=7.4"
},
"require-dev": {
"szepeviktor/phpstan-wordpress": "^1",
Expand All @@ -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": {
Expand Down

0 comments on commit 9fa24f9

Please sign in to comment.