From 8a0eeae7c762c343f4bd1efac0e3a5575d3a03f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 29 Mar 2024 02:12:37 +0100 Subject: [PATCH] Add Laravel 11 support (#23) * drop L9, add L11 support * bump PHP version * bump archtechx/helpers dependency * add setup-php to all ci jobs --- .github/workflows/ci.yml | 12 ++++++++++-- composer.json | 12 ++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e309df..fca2e98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,14 +16,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - laravel: [9, 10] + laravel: [10, 11] steps: - uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' - name: Install composer dependencies run: composer require "illuminate/support:^${{ matrix.laravel }}.0" - name: Run tests @@ -35,6 +35,10 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' - name: Install composer dependencies run: composer install - name: Run phpstan @@ -45,6 +49,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' - name: Install php-cs-fixer run: composer global require friendsofphp/php-cs-fixer - name: Run php-cs-fixer diff --git a/composer.json b/composer.json index 42e5035..fff9205 100644 --- a/composer.json +++ b/composer.json @@ -24,15 +24,15 @@ } }, "require": { - "php": "^8.1", - "illuminate/support": "^9.0|^10.0", - "archtechx/helpers": "^0.3.1" + "php": "^8.2", + "illuminate/support": "^10.0|^11.0", + "archtechx/helpers": "^0.3.2" }, "require-dev": { - "orchestra/testbench": "^7.19|^8.0", - "pestphp/pest": "^1.10|^2.0", + "orchestra/testbench": "^8.0|^9.0", + "pestphp/pest": "^2.0", "phpstan/phpstan": "^1.9.8", - "pestphp/pest-plugin-laravel": "^1.1|^2.0", + "pestphp/pest-plugin-laravel": "^2.0", "nunomaduro/larastan": "^2.4" }, "extra": {