From 9edad97159a6957a51d8644a291638dcb0325ab4 Mon Sep 17 00:00:00 2001 From: Michael Moll Date: Sun, 3 Dec 2023 19:51:44 +0100 Subject: [PATCH] Add PHP 8.2 & 8.3 --- .github/workflows/ci.yml | 10 ++++++---- composer.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1f2e0a..869de1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,8 @@ jobs: - 7.4 - 8.0 - 8.1 + - 8.2 + - 8.3 dependencies_level: - --prefer-lowest - "" @@ -66,7 +68,7 @@ jobs: with: coverage: 'xdebug' php-version: ${{ matrix.php_version }} - extensions: ast-1.0.14 + extensions: ast-1.1.1 - name: Cache dependencies uses: actions/cache@v3 with: @@ -74,15 +76,15 @@ jobs: key: "cache-composer-${{ hashFiles('composer.json') }}" restore-keys: 'cache-composer-' - name: Run composer - if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }} + if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' && matrix.php_version != '8.2' && matrix.php_version != '8.3' }} run: composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress - name: Run composer with workaround for PHP 8 and incompatible PHPUnit - if: ${{ matrix.php_version == '8.0' || matrix.php_version == '8.1' }} + if: ${{ matrix.php_version == '8.0' || matrix.php_version == '8.1' || matrix.php_version == '8.2' || matrix.php_version == '8.3' }} run: composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress - name: Check composer.json run: composer normalize --dry-run - name: Run tests with coverage - if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' }} + if: ${{ matrix.php_version != '8.0' && matrix.php_version != '8.1' && matrix.php_version != '8.2' && matrix.php_version != '8.3' }} run: php vendor/bin/phpunit --coverage-clover=coverage.xml - name: Run tests if: ${{ matrix.php_version == '8.0' }} diff --git a/composer.json b/composer.json index 8ef16fa..6c65e70 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ }, "require-dev": { "ergebnis/composer-normalize": ">=2.19 <2.30", - "phan/phan": "^5.1.0", + "phan/phan": "^5.4.2", "phpstan/phpstan": "^1.0", "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^7.0",