From 9aa1547d665a8b775d513f1f7c47002361be89ed Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 13 Mar 2024 00:41:35 +0300 Subject: [PATCH] Added Laravel 11 support --- .github/workflows/phpunit.yml | 13 ++++++++----- composer.json | 6 +++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index ea810df..8ad8714 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -9,11 +9,14 @@ jobs: strategy: fail-fast: true matrix: - php: [ "8.1", "8.2" ] - laravel: [ "8.0", "9.0", "10.0" ] - prefer: [ "stable", "lowest" ] + php: [ "8.1", "8.2", "8.3" ] + laravel: [ "8.0", "9.0", "10.0", "11.0" ] + exclude: + - laravel: 11.0 + php: 8.1 + - name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} ${{ matrix.prefer }} + name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} steps: - name: Checkout code @@ -27,7 +30,7 @@ jobs: coverage: none - name: Install dependencies - run: composer require --dev laravel/framework:^${{ matrix.laravel }} --prefer-${{ matrix.prefer }} + run: composer require --dev laravel/framework:^${{ matrix.laravel }} - name: Execute tests run: sudo vendor/bin/phpunit diff --git a/composer.json b/composer.json index be9effc..e46097f 100644 --- a/composer.json +++ b/composer.json @@ -42,13 +42,13 @@ "php": "^8.1", "archtechx/enums": "^0.3.1", "dragon-code/support": "^6.9", - "illuminate/collections": "^8.75 || ^9.0 || ^10.0" + "illuminate/collections": "^8.75 || ^9.0 || ^10.0 || ^11.0" }, "require-dev": { "fakerphp/faker": "^1.21", - "illuminate/database": "^8.75 || ^9.0 || ^10.0", + "illuminate/database": "^8.75 || ^9.0 || ^10.0 || ^11.0", "phpunit/phpunit": "^9.6", - "symfony/var-dumper": "^5.3 || ^6.0" + "symfony/var-dumper": "^5.3 || ^6.0 || ^7.0" }, "minimum-stability": "stable", "prefer-stable": true,