From f1476c612c439c0db84cae95d130fe7a0cd5abcf Mon Sep 17 00:00:00 2001 From: Pierre Tondereau Date: Sat, 17 Oct 2020 21:51:59 +0200 Subject: [PATCH] Add support of PHP8 in CI (#89) --- .github/workflows/ci.yml | 10 ++++++++-- composer.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32ad5cf..7d18c7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,10 @@ jobs: strategy: matrix: php-versions: ['7.2', '7.3', '7.4'] + include: + - php-versions: "8.0" + dependencies: "highest" + composer-options: "--ignore-platform-reqs" name: PHP ${{ matrix.php-versions }} @@ -24,10 +28,12 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - tools: phpunit + tools: phpunit, composer:v2 - name: Install dependencies - run: composer install --prefer-dist + uses: "ramsey/composer-install@v1" + with: + composer-options: "${{ matrix.composer-options }}" - name: Analysis run: vendor/bin/phpstan analyse -l 7 src diff --git a/composer.json b/composer.json index b5eceb5..58e1f39 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "php": ">=7.2" }, "require-dev": { - "phpunit/phpunit": "^8.4", + "phpunit/phpunit": "^8.4 || ^9.3", "phpstan/phpstan": "^0.11.16" }, "autoload": {