From 2b8ece02f5b61c060911ad9ea9aa9a6559575415 Mon Sep 17 00:00:00 2001 From: ignace nyamagana butera Date: Sun, 24 Mar 2024 21:18:12 +0100 Subject: [PATCH] adding PHP8.4 support --- .github/workflows/build.yml | 14 ++++++++++++-- composer.json | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0766a5..536e547 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,11 @@ jobs: matrix: php: ['8.1', '8.2', '8.3'] stability: [prefer-lowest, prefer-stable] + include: + - php: '8.4' + flags: "--ignore-platform-req=php" + phpunit-flags: '--no-coverage' + stability: prefer-stable steps: - name: Checkout code uses: actions/checkout@v3 @@ -45,11 +50,16 @@ jobs: - name: Run Unit tests with coverage run: composer phpunit -- ${{ matrix.phpunit-flags }} + if: ${{ matrix.php == '8.3' || matrix.php == '8.2' || matrix.php == '8.1'}} + + - name: Run Unit tests without coverage + run: composer phpunit:min + if: ${{ matrix.php == '8.4'}} - name: Run static analysis run: composer phpstan - if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}} + if: ${{ matrix.php == '8.3' && matrix.stability == 'prefer-stable'}} - name: Run Coding style rules run: composer phpcs:fix - if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}} + if: ${{ matrix.php == '8.3' && matrix.stability == 'prefer-stable'}} diff --git a/composer.json b/composer.json index c31ce74..6b6bcbd 100644 --- a/composer.json +++ b/composer.json @@ -53,6 +53,7 @@ "phpstan/phpstan-phpunit": "^1.3.16", "phpstan/phpstan-strict-rules": "^1.5.2", "phpunit/phpunit": "^10.5.15", + "phpunit:min": "phpunit --no-coverage", "symfony/var-dumper": "^6.4.4" }, "autoload": {