diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 671a5a8..aedfa6a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,8 +13,8 @@ jobs: strategy: #for each of the following versions of PHP, with and without --prefer-lowest matrix: - php-versions: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4'] - + php-versions: [ '7.2.5', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] + composer-options: [ '', '--prefer-lowest' ] #set the name for each job name: PHP ${{ matrix.php-versions }} steps: @@ -35,4 +35,14 @@ jobs: #run tests - name: Run test suite - run: vendor/bin/phpunit \ No newline at end of file + run: vendor/bin/phpunit + + #php 8.x requirements + - if: ${{ matrix.php-versions >= '8.0' && matrix.composer-options != '' }} + name: PHP 8.x + run: composer require --dev phpunit/phpunit "^9.5" --no-interaction --prefer-source --with-all-dependencies + + #php 8.1+ requirements + - if: ${{ matrix.php-versions >= '8.1' && matrix.composer-options != '' }} + name: PHP 8.1+ + run: composer require --dev guzzlehttp/guzzle "^7.4.5" --no-interaction --prefer-source --with-all-dependencies