Skip to content

Commit

Permalink
Laravel 12 support (#531)
Browse files Browse the repository at this point in the history
* Remove unnecessary newline in composer.json

* Added Laravel 12 support

* Removed Laravel 8 and 9 support

* Update PHP version requirement to ^8.1 and adjust test matrix in GitHub Actions

* Add PHP 8.4 to the test matrix in GitHub Actions

* Update dependencies in composer.json to reflect version changes
  • Loading branch information
poldixd authored Feb 14, 2025
1 parent b1421f8 commit 2ec8502
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [8.0, 8.1, 8.2, 8.3]
laravel: [11.*, 10.*, 9.*, 8.*]
php: [8.1, 8.2, 8.3, 8.4]
laravel: [12.*, 11.*, 10.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- laravel: 12.*
testbench: 10.*
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- laravel: 11.*
php: [8.1, 8.0]
- laravel: 10.*
php: 8.0
php: 8.1

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

Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
}
],
"require": {
"php": "^8.0",
"laravel/framework": "^8.67|^9.0|^10.0|^11.0",
"php": "^8.1",
"laravel/framework": "^10.0|^11.0|^12.0",
"nesbot/carbon": "^2.63|^3.0",
"spatie/eloquent-sortable": "^3.10|^4.0",
"spatie/eloquent-sortable": "^4.0",
"spatie/laravel-package-tools": "^1.4",
"spatie/laravel-translatable": "^4.6|^5.0|^6.0"
"spatie/laravel-translatable": "^6.0"
},
"require-dev": {
"orchestra/testbench": "^6.13|^7.0|^8.0|^9.0",
"orchestra/testbench": "^8.0|^9.0|^10.0",
"pestphp/pest": "^1.22|^2.0",
"phpunit/phpunit": "^9.5.2"
},
Expand All @@ -33,7 +33,6 @@
"Spatie\\Tags\\": "src"
}
},

"autoload-dev": {
"psr-4": {
"Spatie\\Tags\\Test\\": "tests"
Expand Down

0 comments on commit 2ec8502

Please sign in to comment.