diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index abfeb57..e8eabc3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] steps: - name: Checkout code @@ -23,15 +23,14 @@ jobs: tools: composer:v2 coverage: none - - name: Install PHP 7 dependencies - run: composer update --prefer-dist --no-interaction --no-progress - if: "matrix.php != '8.0'" - - - name: Install PHP 8 dependencies + - name: Require PHPSpec 7.1 dependencies run: | - composer require "phpunit/phpunit:^9.3@dev" "phpunit/php-code-coverage:^9.0@dev" "sebastian/global-state:^5.0@dev" "phpdocumentor/reflection-docblock:^5.2@dev" --no-interaction --no-update + composer require "phpspec/phpspec:^7.1@dev" --no-interaction --no-update composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php - if: "matrix.php == '8.0'" + if: "matrix.php == '8.1'" + + - name: Install PHP dependencies + run: composer update --prefer-dist --no-interaction --no-progress - name: Execute tests run: composer test diff --git a/composer.json b/composer.json index 7e746f0..091a1d9 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "doctrine/instantiator": "^1.1", "guzzlehttp/psr7": "^1.4", "nyholm/psr7": "^1.2", - "phpspec/phpspec": "^5.1 || ^6.0", + "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1", "phpspec/prophecy": "^1.10.2", "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.3" },