diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08a1fbb..f6c6c16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.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,6 +23,12 @@ jobs: tools: composer coverage: none + - name: Require PHPSpec 7.1 dependencies + run: | + 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.1'" + - name: Install dependencies run: composer update --prefer-dist --no-interaction --no-progress diff --git a/composer.json b/composer.json index fc67cd0..5d24bcd 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "ext-zlib": "*", "ergebnis/composer-normalize": "^2.6", "guzzlehttp/psr7": "^1.0", - "phpspec/phpspec": "^5.1 || ^6.3", + "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1", "slim/slim": "^3.0", "laminas/laminas-diactoros": "^2.0" },