Skip to content

Commit

Permalink
Support Laravel 11 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laratipsofficial committed Mar 17, 2024
1 parent 90aaddd commit 1cacfda
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
16 changes: 13 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: run-tests

on:
push:
branches: [main, laravel-9, support-php-81, laravel-10]
branches: [main, laravel-9, support-php-81, laravel-10, laravel-11]
pull_request:
branches: [main]

Expand All @@ -13,19 +13,29 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0]
laravel: [10.*, 9.*, 8.*]
php: [8.2, 8.1, 8.0]
laravel: [11.*, 10.*, 9.*, 8.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: ^9.0
- laravel: 10.*
testbench: ^8.0
- laravel: 9.*
testbench: ^7.0
- laravel: 8.*
testbench: 6.23
exclude:
- laravel: 8.*
php: 8.2
- laravel: 9.*
php: 8.2
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

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

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
}
],
"require": {
"php": "^8.0|^8.1",
"php": "^8.0|^8.1|^8.2",
"spatie/laravel-package-tools": "^1.9.2",
"illuminate/contracts": "^8.73|^9.0|^10.0"
"illuminate/contracts": "^8.73|^9.0|^10.0|^11.0"
},
"require-dev": {
"nunomaduro/collision": "^5.10|^6.1|^7.0",
"nunomaduro/collision": "^5.10|^6.1|^7.0|^8.0",
"nunomaduro/larastan": "^1.0|^2.0",
"orchestra/testbench": "^6.22|^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"orchestra/testbench": "^6.22|^7.0|^8.0|^9.0",
"pestphp/pest": "^1.21|^2.0",
"pestphp/pest-plugin-laravel": "^1.1|^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^9.5|^10.0|^11.0",
"spatie/laravel-ray": "^1.26"
},
"autoload": {
Expand Down

0 comments on commit 1cacfda

Please sign in to comment.