From f19c2d6b12cfec74e4b60795cb2060932d8e72a2 Mon Sep 17 00:00:00 2001 From: Marks Bogdanovs Date: Tue, 1 Oct 2024 15:16:59 +0700 Subject: [PATCH] Add support for Laravel 11 (#4) * Add support for Laravel 11 * Update testing * Redefine matrix based on: - https://laravel.com/docs/8.x/releases - https://laravel.com/docs/11.x/releases * Add xdebug to coverage --- .github/workflows/run-tests.yml | 32 +++++++++++++++++++++++--------- composer.json | 10 +++++----- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 99d3118..60c10f8 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -17,8 +17,8 @@ jobs: # Disable testing on windows for now... # os: [ubuntu-latest, windows-latest] os: [ubuntu-latest] - php: [7.4, 8.0, 8.1, 8.2] - laravel: [7.*, 8.*, 9.*, 10.*] + php: [7.4, 8.0, 8.1, 8.2, 8.3] + laravel: [7.*, 8.*, 9.*, 10.*, 11.*] stability: [prefer-stable] include: - laravel: 7.* @@ -29,21 +29,35 @@ jobs: testbench: 7.* - laravel: 10.* testbench: 8.* + - laravel: 11.* + testbench: 9.* exclude: - laravel: 7.* php: 8.1 - laravel: 7.* - php: 8.2 + php: 8.2 + - laravel: 7.* + php: 8.3 - laravel: 8.* - php: 8.1 + php: 8.2 - laravel: 8.* - php: 8.2 + php: 8.3 + - laravel: 9.* + php: 7.4 - laravel: 9.* - php: 7.4 + php: 8.2 + - laravel: 9.* + php: 8.3 - laravel: 10.* php: 7.4 - laravel: 10.* - php: 8.0 + php: 8.0 + - laravel: 11.* + php: 7.4 + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -56,7 +70,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none + coverage: xdebug - name: Setup problem matchers run: | @@ -67,4 +81,4 @@ jobs: composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests - run: vendor/bin/phpunit \ No newline at end of file + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index e874a58..da1f4a6 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ ], "require": { "php": "^7.4|^8.0", - "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0", - "illuminate/support": "^7.0|^8.0|^9.0|^10.0" + "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.1", - "orchestra/testbench": "5.*|6.*|7.*|8.*", - "phpunit/phpunit": "^8.4|^9.0" + "orchestra/testbench": "5.*|6.*|7.*|8.*|9.*", + "phpunit/phpunit": "^8.4|^9.0|^10.0" }, "autoload": { "psr-4": { @@ -56,4 +56,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} \ No newline at end of file +}