From fbe43618a4a2f606181007570692f1d0abd05e78 Mon Sep 17 00:00:00 2001 From: ignace nyamagana butera Date: Sun, 24 Mar 2024 19:16:27 +0100 Subject: [PATCH] adding PHP8.4 support --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9444048a..74c0e3b1 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'}}