Skip to content

Commit

Permalink
Support Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Danilchenko committed Feb 21, 2024
1 parent 2482cd1 commit 02a9533
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@ jobs:
matrix:
os: [ubuntu-22.04, windows-2019]
php: [8.1, 8.2, 8.3]
laravel: [^10.18, ^11.0]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: ^10.18
testbench: ^8.0
- laravel: ^11.0
testbench: ^9.0
exclude:
- laravel: ^11.0
php: ^8.1

name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
Expand All @@ -28,6 +37,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute lint tests with Laravel preset
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
],
"require": {
"php": "^8.1",
"laravel/framework": "^10.18"
"laravel/framework": "^10.18 || ^11.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"orchestra/testbench": "^8.0",
"orchestra/testbench": "^8.0 || ^9.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.0"
"phpunit/phpunit": "^10.0 || ^11.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 02a9533

Please sign in to comment.