From 7193575cb750b944cde7683a125f93231b6cd7b5 Mon Sep 17 00:00:00 2001 From: Jasper Zonneveld Date: Tue, 5 Mar 2024 09:50:55 +0100 Subject: [PATCH] build: add support for Laravel 11 --- .github/workflows/tests.yml | 28 +++++++++++++++++++--------- composer.json | 6 +++--- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8e338e8..1e56578 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,18 +9,28 @@ jobs: strategy: fail-fast: false matrix: - php: [ '7.4', '8.0', '8.1', '8.2' ] - laravel: [ '8.*', '9.*', '10.*' ] + php: [ 7.4, '8.0', 8.1, 8.2, 8.3 ] + laravel: [ 8.*, 9.*, 10.*, 11.* ] stability: [ prefer-stable ] exclude: - - laravel: '8.*' - php: '8.2' - - laravel: '9.*' - php: '7.4' - - laravel: '10.*' - php: '7.4' - - laravel: '10.*' + - laravel: 8.* + php: 8.2 + - laravel: 8.* + php: 8.3 + - laravel: 9.* + php: 7.4 + - laravel: 9.* + php: 8.3 + - laravel: 10.* + php: 7.4 + - laravel: 10.* 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 }} diff --git a/composer.json b/composer.json index d0ab89d..3828e0c 100644 --- a/composer.json +++ b/composer.json @@ -4,15 +4,15 @@ "description": "A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.", "require": { "php": "^7.4|^8.0", - "illuminate/support": "^8.0|^9.0|^10.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", "swisnl/json-api-client": "^2.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.0", "guzzlehttp/guzzle": "^7.3", "guzzlehttp/psr7": "^2.1", - "orchestra/testbench": "^6.15|^7.0|^8.0", - "phpunit/phpunit": "^9.5" + "orchestra/testbench": "^6.15|^7.0|^8.0|^9.0", + "phpunit/phpunit": "^9.5|^10.5" }, "autoload": { "psr-4": {