diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d74bd47..635e1bb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,17 +4,29 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: - php: [8.2, 8.1] - dependency-version: [prefer-lowest, prefer-stable] - - name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} + os: [ubuntu-latest] + php: [8.3, 8.2, 8.1] + laravel: [9.*, 10.*, 11.*] + dependency-version: [prefer-stable] + include: + - laravel: 9.* + testbench: 7.* + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.1 + + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -24,6 +36,7 @@ jobs: - name: Install dependencies run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Code Style 👨‍🏭 diff --git a/README.md b/README.md index 4e05003..7cad540 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@

Packagist PHP from Packagist - Laravel Version + Laravel Version GitHub Workflow Status (main)

diff --git a/composer.json b/composer.json index d32fd81..c11499f 100644 --- a/composer.json +++ b/composer.json @@ -31,17 +31,17 @@ ], "require": { "php": "^8.1", - "illuminate/console": "^9.0|^10.0", - "illuminate/database": "^9.0|^10.0", - "illuminate/http": "^9.0|^10.0", - "illuminate/support": "^9.0|^10.0", - "illuminate/validation": "^9.0|^10.0" + "illuminate/console": "^9.0|^10.0|^11.0", + "illuminate/database": "^9.0|^10.0|^11.0", + "illuminate/http": "^9.0|^10.0|^11.0", + "illuminate/support": "^9.0|^10.0|^11.0", + "illuminate/validation": "^9.0|^10.0|^11.0" }, "require-dev": { - "laravel/pint": "^1.11", - "orchestra/testbench": "^7.20|^8.10", - "pestphp/pest": "v2.15", - "pestphp/pest-plugin-faker": "^2.0" + "laravel/pint": "^1.14", + "orchestra/testbench": "^7.0|^8.0|^9.0", + "pestphp/pest": "^1.20|^2.0", + "pestphp/pest-plugin-faker": "^1.0|^2.0" }, "scripts": { "lint": "pint",