From 2421c20086117d8350a646517b875da1e30dbf8f Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Sat, 7 Dec 2024 03:23:05 +0800 Subject: [PATCH] [3.x] Supports PHP 8.4 (#90) * [3.x] Supports PHP 8.4 * wip * wip * wip * wip * Update tests.yml --- .github/workflows/tests.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a3d0b4d..c99a5c5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,21 +16,24 @@ jobs: strategy: fail-fast: true matrix: - php: ['8.0', 8.1, 8.2, 8.3] - laravel: [8, 9, 10, 11] - exclude: - - php: '8.0' - laravel: 10 + php: [8.1, 8.2, 8.3, 8.4] + laravel: [10, 11] + include: + - php: 8.2 + laravel: 9 + - php: 8.1 + laravel: 9 - php: '8.0' - laravel: 11 + laravel: 9 - php: 8.1 - laravel: 11 - - php: 8.2 laravel: 8 - - php: 8.3 + - php: '8.0' laravel: 8 - - php: 8.3 - laravel: 9 + exclude: + - php: 8.4 + laravel: 10 + - php: 8.1 + laravel: 11 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} @@ -49,8 +52,7 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update - composer update --prefer-dist --no-interaction --no-progress + composer update --prefer-dist --no-interaction --no-progress --with="illuminate/support=^${{ matrix.laravel }}" - name: Execute tests - run: vendor/bin/phpunit + run: vendor/bin/phpunit ${{ matrix.laravel >= 10 && '--display-deprecations --fail-on-deprecation' || '' }}