From bcdbbec61dd1e097f2b1108b0a02200e44ca91f5 Mon Sep 17 00:00:00 2001 From: Cesar Garcia Date: Sat, 9 Mar 2024 11:58:54 +0100 Subject: [PATCH] Remove support to Laravel 9 (#30) * Remove support to Laravel 9 * Remove support to Laravel 9 --- .github/workflows/phpstan.yml | 8 +++++--- .github/workflows/style-fix.yml | 6 +++--- .github/workflows/tests.yml | 10 ++-------- composer.json | 12 ++++++------ 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index b8db104..1232ba1 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -17,20 +17,22 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.2 - name: Cache Composer packages id: composer-cache uses: actions/cache@v4 with: path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }} restore-keys: | - ${{ runner.os }}-php- + ${{ runner.os }}-php-8.2- + - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump + - name: Run analyse phpstan run: vendor/bin/phpstan analyse --error-format github \ No newline at end of file diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index ff0fff9..3cbb4e4 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -15,7 +15,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' coverage: xdebug - name: Cache Composer packages @@ -23,9 +23,9 @@ jobs: uses: actions/cache@v4 with: path: vendor - key: ${{ runner.os }}-php-8.1-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }} restore-keys: | - ${{ runner.os }}-php--8.1 + ${{ runner.os }}-php--8.2 - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c00799b..079372d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,23 +11,17 @@ jobs: strategy: fail-fast: false matrix: - php: [8.3, 8.2, 8.1, 8.0] - laravel: ['9.*', '10.*', '11.*'] + php: [8.3, 8.2, 8.1] + laravel: ['10.*', '11.*'] dependency-version: [prefer-stable] include: - - laravel: 9.* - testbench: 7.* - laravel: 10.* testbench: 8.* - laravel: 11.* testbench: 9.* exclude: - - laravel: 10.* - php: 8.0 - laravel: 11.* php: 8.1 - - laravel: 11.* - php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/composer.json b/composer.json index 7fafb50..29d6b7c 100644 --- a/composer.json +++ b/composer.json @@ -12,15 +12,15 @@ ], "type": "library", "require": { - "php": "^8.0", - "illuminate/console": "^9.0|^10.0|^11.0", - "illuminate/database": "^9.0|^10.0|^11.0", - "illuminate/events": "^9.0|^10.0|^11.0", - "illuminate/support": "^9.0|^10.0|^11.0" + "php": "^8.1", + "illuminate/console": "^10.0|^11.0", + "illuminate/database": "^10.0|^11.0", + "illuminate/events": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0" }, "require-dev": { "phpunit/phpunit": "^9.0|^10.5", - "orchestra/testbench": "^7.0|^8.0|^9.0", + "orchestra/testbench": "^8.0|^9.0", "laravel/legacy-factories": "^1.0.4", "friendsofphp/php-cs-fixer": "^3.13", "larastan/larastan": "^2.0"