From 24281639258daf80fe0a585f55b7490a88fd68ef Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Sun, 10 Mar 2024 06:47:39 -0400 Subject: [PATCH] Laravel 11.x Compatibility (#147) * Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11 --- .github/workflows/php.yml | 17 ++++++++++------- composer.json | 6 +++--- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 05f1f85..49f5282 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,18 +2,21 @@ name: PHPUnit on: push: - branches: [ master ] + branches: + - master pull_request: - branches: [ master ] + branches: + - master jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: false matrix: - php-versions: [ '8.1', '8.2' ] - phpunit-versions: [ 'latest' ] + php-versions: ['8.1', '8.2'] + phpunit-versions: ['8.2', latest] name: PHP ${{ matrix.php-versions }} @@ -30,8 +33,8 @@ jobs: coverage: none - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: | - composer install --prefer-dist --no-interaction --no-suggest + if: "steps.composer-cache.outputs.cache-hit != 'true'" + run: composer install --prefer-dist --no-interaction --no-suggest + - name: Run test suite run: composer run-script test diff --git a/composer.json b/composer.json index e73f969..87ea475 100755 --- a/composer.json +++ b/composer.json @@ -18,10 +18,10 @@ "require": { "php": "^8.1|^8.2", "livewire/livewire": "^3.0", - "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" + "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0" }, "require-dev": { - "orchestra/testbench": "^6.15|^7.0|^8.0", + "orchestra/testbench": "^6.15|^7.0|^8.0|^9.0", "phpunit/phpunit": "^9.5|^10.0" }, "autoload": { @@ -31,7 +31,7 @@ }, "autoload-dev": { "psr-4": { - "Jantinnerezo\\LivewireAlert\\Tests\\": "tests" + "Jantinnerezo\\LivewireAlert\\Tests\\": "tests" } }, "scripts": {