Skip to content

Commit

Permalink
Add Laravel 12 Support (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
geisi authored Feb 15, 2025
1 parent ca824fe commit 14b59dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
laravel: ["^11.0", "^10.0", "^9.38"]
php: [8.4, 8.3, 8.2, 8.1]
laravel: ["^12.0", "^11.0", "^10.0", "^9.38"]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: "^12.0"
testbench: 10.*
- laravel: "^11.0"
testbench: 9.*
- laravel: "^10.0"
Expand All @@ -26,6 +28,8 @@ jobs:
exclude:
- laravel: "^11.0"
php: 8.1
- laravel: "^12.0"
php: 8.1

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

Expand All @@ -45,6 +49,9 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Remove larastan from dev dependencies
run: composer remove --dev nunomaduro/larastan

- name: Install dependencies
run: |
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update
Expand Down
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,19 @@
],
"require": {
"php": "^8.1",
"illuminate/contracts": "^9.38|^10.0|^11.0",
"illuminate/contracts": "^9.38|^10.0|^11.0|^12.0",
"spatie/laravel-package-tools": "^1.14.0",
"symfony/mailer": "^6.0|^7.0"
},
"require-dev": {
"composer/semver": "^3.4",
"guzzlehttp/guzzle": "^7.5",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^6.0|^7.0|^8.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"pestphp/pest": "^1.21|^2.0",
"pestphp/pest-plugin-laravel": "^1.21|^2.0",
"nunomaduro/larastan": "^2.0.1|^3.0",
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
"pestphp/pest": "^1.21|^2.0|^3.0",
"pestphp/pest-plugin-laravel": "^1.21|^2.0|^3.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"spatie/laravel-ray": "^1.26"
},
"autoload": {
Expand Down

0 comments on commit 14b59dc

Please sign in to comment.