From a399aa31c1c9cef793ad747403017e56df77396c Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 22 Nov 2024 01:37:39 +0800 Subject: [PATCH] [8.x] Supports PHP 8.4 (#1131) * [8.x] Supports PHP 8.4 Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip * wip --------- Signed-off-by: Mior Muhammad Zaki --- .github/workflows/browser-tests.yml | 12 ++++++++---- .github/workflows/tests.yml | 17 ++++++++++------- composer.json | 2 +- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/browser-tests.yml b/.github/workflows/browser-tests.yml index 6db38ecfa..f6e422e8f 100644 --- a/.github/workflows/browser-tests.yml +++ b/.github/workflows/browser-tests.yml @@ -20,12 +20,16 @@ jobs: matrix: php: [8.1, 8.2, 8.3] laravel: [10, 11] - phpunit: [10.5, '11.0'] + phpunit: [10.5, 11] + include: + - php: 8.4 + laravel: 11 + phpunit: 11.3 exclude: - php: 8.1 laravel: 11 - laravel: 10 - phpunit: '11.0' + phpunit: 11 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - PHPUnit ${{ matrix.phpunit }} @@ -44,7 +48,7 @@ jobs: - name: Install dependencies run: | - composer update --prefer-dist --no-interaction --no-progress --with=illuminate/support:^${{ matrix.laravel }} --with=phpunit/phpunit:^${{ matrix.phpunit }} + composer update --prefer-dist --no-interaction --no-progress --with=laravel/framework:^${{ matrix.laravel }} --with=phpunit/phpunit:^${{ matrix.phpunit }} - name: Upgrade Chrome Driver run: php vendor/bin/testbench dusk:chrome-driver --detect @@ -56,6 +60,6 @@ jobs: run: php vendor/bin/testbench serve --no-reload & - name: Execute tests - run: php vendor/bin/phpunit -c phpunit.dusk.xml.dist + run: php vendor/bin/phpunit -c phpunit.dusk.xml.dist --display-deprecations --fail-on-deprecation env: APP_URL: http://127.0.0.1:8000 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 694b05e0b..a32c4ddf6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,12 +20,16 @@ jobs: matrix: php: [8.1, 8.2, 8.3] laravel: [10, 11] - phpunit: [10.5, '11.0'] + phpunit: [10.5, 11] + include: + - php: 8.4 + laravel: 11 + phpunit: 11.3 exclude: - php: 8.1 laravel: 11 - laravel: 10 - phpunit: '11.0' + phpunit: 11 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - PHPUnit ${{ matrix.phpunit }} @@ -44,11 +48,10 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/contracts:^${{ matrix.laravel }}" "phpunit/phpunit:^${{ matrix.phpunit }}" --dev --no-update - composer update --prefer-dist --no-interaction --no-progress + composer update --prefer-dist --no-interaction --no-progress --with="laravel/framework:^${{ matrix.laravel }}" --with="phpunit/phpunit:^${{ matrix.phpunit }}" - name: Execute tests - run: vendor/bin/phpunit -c phpunit.xml.dist + run: vendor/bin/phpunit -c phpunit.xml.dist --display-deprecations --fail-on-deprecation stub-tests: runs-on: ubuntu-22.04 @@ -56,8 +59,8 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2] - laravel: [10] + php: [8.2, 8.3, 8.4] + laravel: [10, 11] name: Test Stubs PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/composer.json b/composer.json index e6fd0630e..3cb020665 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "guzzlehttp/guzzle": "^7.5", "illuminate/console": "^10.0|^11.0", "illuminate/support": "^10.0|^11.0", - "php-webdriver/webdriver": "^1.9.0", + "php-webdriver/webdriver": "^1.15.2", "symfony/console": "^6.2|^7.0", "symfony/finder": "^6.2|^7.0", "symfony/process": "^6.2|^7.0",