Skip to content

Commit

Permalink
Adds Laravel 10 support (#17)
Browse files Browse the repository at this point in the history
* Laravel 10 upgrade

* Fixes

* Fix PHP styling

---------

Co-authored-by: peterfox <[email protected]>
  • Loading branch information
peterfox and peterfox authored Mar 11, 2023
1 parent 5a62b7f commit 0e4f955
Show file tree
Hide file tree
Showing 6 changed files with 1,143 additions and 18 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ jobs:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ 8.0, 8.1, 8.2 ]
laravel: [ 9.*, 8.* ]
cockroachdb: [ v21.2.15, v22.1.7 ]
laravel: [ 10.*, 9.*, 8.* ]
cockroachdb: [ v21.2.15, v22.1.12 ]
dependencies: [ stable, lowest ]
include:
- laravel: 10.*
testbench: ^8.0
- laravel: 9.*
testbench: ^7.0
- laravel: 8.*
Expand All @@ -26,6 +28,9 @@ jobs:
dependencies: lowest
dotenv: ^5.5.0
carbon: ^2.62.1
exclude:
- laravel: 10.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependencies }} - crdb.${{ matrix.cockroachdb }} ${{ matrix.os }}

Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"require": {
"php": "^8.0",
"spatie/laravel-package-tools": "^1.9.2",
"illuminate/contracts": "9.*|8.*"
"illuminate/contracts": "10.*|9.*|8.*"
},
"require-dev": {
"doctrine/dbal": "^3.2",
"laravel/pint": "^1.2",
"nunomaduro/collision": "^6.0|^5.10",
"nunomaduro/larastan": "^1.0",
"orchestra/testbench": "^7.0|^6.24",
"nunomaduro/larastan": "^2.0|^1.0",
"orchestra/testbench": "^8.0|^7.0|^6.24",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"phpstan/extension-installer": "^1.1",
Expand All @@ -48,7 +48,8 @@
"scripts": {
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest coverage"
"test-coverage": "vendor/bin/pest coverage",
"lint": "vendor/bin/pint"
},
"config": {
"sort-packages": true,
Expand Down
Loading

0 comments on commit 0e4f955

Please sign in to comment.