From 8db8b6abb751873072ed638c8a1a7c038de9315b Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Sat, 9 Mar 2024 03:00:54 -0500 Subject: [PATCH] Laravel 11.x Compatibility (#93) * Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11 --- .github/workflows/main.yml | 12 +++++++++--- composer.json | 8 ++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6870ae0..592c81c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,18 @@ name: CI laravel-ovh -on: [push, pull_request] + +on: + - push + - pull_request + jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: true matrix: - php: [8.1] - illuminate: [10.*] + php: [8.1, '8.2'] + illuminate: ['10.*'] dependency-version: [prefer-stable] name: P${{ matrix.php }} - L${{ matrix.illuminate }} - ${{ matrix.dependency-version }} @@ -19,6 +24,7 @@ jobs: - name: Detect Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" + - name: Setup Composer Cache uses: actions/cache@v2 with: diff --git a/composer.json b/composer.json index ab1f54a..4121892 100644 --- a/composer.json +++ b/composer.json @@ -33,15 +33,15 @@ }, "require": { "php": "^8.1", - "illuminate/console": "^10.0", - "illuminate/support": "^10.0", + "illuminate/console": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0", "nimbusoft/flysystem-openstack-swift": "^1.5" }, "require-dev": { - "phpunit/phpunit": "^9.5.10", + "phpunit/phpunit": "^9.5.10|^10.5", "mockery/mockery": "^1.4.4", "friendsofphp/php-cs-fixer": "^3.14", - "orchestra/testbench": "^8.0" + "orchestra/testbench": "^8.0|^9.0" }, "extra": { "laravel": {