diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a961b8..4378a9e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,18 +4,21 @@ on: push: branches: - main - pull_request: - types: [ opened, synchronize, reopened ] + types: + - opened + - synchronize + - reopened jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: false matrix: php: ['8.0', '8.1', '8.2', '8.3'] - laravel: ['8.*', '9.*', '10.*', '11.*'] + laravel: ['8.*', '9.*', '10.*', '11.*', '12.*'] dependency-version: [prefer-lowest, prefer-stable] include: - laravel: 8.* @@ -26,7 +29,8 @@ jobs: testbench: 8.* - laravel: 11.* testbench: 9.* - + - laravel: 12.* + testbench: 10.* exclude: - laravel: 8.* php: 8.1 @@ -37,21 +41,22 @@ jobs: - laravel: 8.* php: 8.3 dependency-version: prefer-lowest - - laravel: 9.* php: 8.2 dependency-version: prefer-lowest - laravel: 9.* php: 8.3 dependency-version: prefer-lowest - - laravel: 10.* php: 8.0 - - laravel: 11.* php: 8.0 - laravel: 11.* php: 8.1 + - laravel: 12.* + php: '8.0' + - laravel: 12.* + php: '8.1' name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -83,12 +88,12 @@ jobs: run: vendor/bin/phpunit - name: Install Livewire V2 (Below Laravel 11.0) - if: "! startsWith(matrix.laravel, '11.')" + if: "! startsWith(matrix.laravel, '11.') && ! startsWith(matrix.laravel, '12.')" run: | composer require "livewire/livewire:^2.3.10" -W --${{ matrix.dependency-version }} --no-interaction - name: Test with Livewire V2 - if: "! startsWith(matrix.laravel, '11.')" + if: "! startsWith(matrix.laravel, '11.') && ! startsWith(matrix.laravel, '12.')" run: vendor/bin/phpunit - name: Install Livewire V3 (Above Laravel 9.0) diff --git a/composer.json b/composer.json index 108f869..f2b9d1d 100644 --- a/composer.json +++ b/composer.json @@ -17,18 +17,18 @@ ], "require": { "php": "^7.3|^8.0", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0", - "illuminate/console": "^8.0|^9.0|^10.0|^11.0", - "illuminate/http": "^8.0|^9.0|^10.0|^11.0", - "illuminate/cache": "^8.0|^9.0|^10.0|^11.0", - "illuminate/view": "^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/http": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/cache": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/view": "^8.0|^9.0|^10.0|^11.0|^12.0", "guzzlehttp/guzzle": "^7.2", "ramsey/uuid": "^3.7|^4.0" }, "require-dev": { - "orchestra/testbench": "^5.0|^6.0|^7.0|^9.0", + "orchestra/testbench": "^5.0|^6.0|^7.0|^9.0|^10.0", "mockery/mockery": "^1.3.3", - "phpunit/phpunit": "^8.5.23|^9.5|^10.5" + "phpunit/phpunit": "^8.5.23|^9.5|^10.5|^11.5.3" }, "autoload": { "psr-4": {