Skip to content

Commit

Permalink
Add support for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
vaened committed Apr 21, 2024
1 parent a0ad2c1 commit fa9bc6a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:

strategy:
matrix:
php: ['8.1']
laravel: ['9', '10']
php: ['8.1', '8.2']
laravel: ['10', '11']

steps:
- name: Checkout Code
Expand All @@ -28,21 +28,21 @@ jobs:
- name: Setup Problem Matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Select Laravel 9
- name: Select Laravel 10
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "laravel/framework:9.*" --no-update --no-interaction
if: "matrix.laravel == '9'"
command: composer require "laravel/framework:10.*" --no-update --no-interaction
if: "matrix.laravel == '10' && (matrix.php == '8.1' || matrix.php == '8.2')"

- name: Select Laravel 10
- name: Select Laravel 11
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "laravel/framework:10.*" --no-update --no-interaction
if: "matrix.laravel == '10'"
command: composer require "laravel/framework:11.*" --no-update --no-interaction
if: "matrix.laravel == '11' && matrix.php == '8.2'"

- name: Install dependencies
uses: nick-invision/retry@v2
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
}
],
"require": {
"php": "^8.1",
"laravel/framework": "^9|^10",
"php": "^8.1|^8.2",
"laravel/framework": "^10|^11",
"vaened/support": "^3.1"
},
"require-dev": {
"phpunit/phpunit": "^9.1|^10",
"orchestra/testbench": "^7|^8"
"phpunit/phpunit": "^10",
"orchestra/testbench": "^8|^9"
},
"extra": {
"laravel": {
Expand Down

0 comments on commit fa9bc6a

Please sign in to comment.