Skip to content

Commit 05fded5

Browse files
authored
Update Composer & CI Workflow (#13)
Ideal flow is that composer can find the right versions of packages to fit the current version of PHP.
2 parents 7574d26 + ce4fe53 commit 05fded5

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ jobs:
2828
ini-values: post_max_size=256M, max_execution_time=180
2929
coverage: xdebug
3030
tools: phpunit:${{ matrix.phpunit-versions }}
31-
- if: ${{ matrix.php-versions == 7.0 }}
32-
name: "PHP 7.0"
33-
run: composer require --dev --with-all-dependencies --no-install phpunit/phpunit 6.0
34-
- if: ${{ matrix.php-versions == 7.4 }}
35-
name: "PHP 7.4"
36-
run: composer require --dev --with-all-dependencies --no-install phpunit/phpunit 8.0
37-
- if: ${{ matrix.php-versions >= 8.0 }}
38-
name: "PHP >8.0"
39-
run: composer require --dev --with-all-dependencies --no-install phpunit/phpunit
4031
- name: "Install"
4132
run: |
4233
composer update --no-install --with-all-dependencies

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
}
1010
},
1111
"require": {
12-
"php": "^7.0 || ^8.0",
13-
"guzzlehttp/guzzle": "^6.0 || ^7.0"
12+
"php": "^7.0|^8.0",
13+
"guzzlehttp/guzzle": "^6.0|^7.0"
1414
},
1515
"require-dev": {
16-
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
16+
"phpunit/phpunit": "^6.0|^7.0|^8.0|^9.0"
1717
}
1818
}

0 commit comments

Comments
 (0)