Skip to content

Commit 0e4f955

Browse files
authored
Adds Laravel 10 support (#17)
* Laravel 10 upgrade * Fixes * Fix PHP styling --------- Co-authored-by: peterfox <[email protected]>
1 parent 5a62b7f commit 0e4f955

File tree

6 files changed

+1143
-18
lines changed

6 files changed

+1143
-18
lines changed

.github/workflows/run-tests.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111

1212
strategy:
13-
fail-fast: true
13+
fail-fast: false
1414
matrix:
1515
os: [ ubuntu-latest ]
1616
php: [ 8.0, 8.1, 8.2 ]
17-
laravel: [ 9.*, 8.* ]
18-
cockroachdb: [ v21.2.15, v22.1.7 ]
17+
laravel: [ 10.*, 9.*, 8.* ]
18+
cockroachdb: [ v21.2.15, v22.1.12 ]
1919
dependencies: [ stable, lowest ]
2020
include:
21+
- laravel: 10.*
22+
testbench: ^8.0
2123
- laravel: 9.*
2224
testbench: ^7.0
2325
- laravel: 8.*
@@ -26,6 +28,9 @@ jobs:
2628
dependencies: lowest
2729
dotenv: ^5.5.0
2830
carbon: ^2.62.1
31+
exclude:
32+
- laravel: 10.*
33+
php: 8.0
2934

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

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"require": {
1919
"php": "^8.0",
2020
"spatie/laravel-package-tools": "^1.9.2",
21-
"illuminate/contracts": "9.*|8.*"
21+
"illuminate/contracts": "10.*|9.*|8.*"
2222
},
2323
"require-dev": {
2424
"doctrine/dbal": "^3.2",
2525
"laravel/pint": "^1.2",
2626
"nunomaduro/collision": "^6.0|^5.10",
27-
"nunomaduro/larastan": "^1.0",
28-
"orchestra/testbench": "^7.0|^6.24",
27+
"nunomaduro/larastan": "^2.0|^1.0",
28+
"orchestra/testbench": "^8.0|^7.0|^6.24",
2929
"pestphp/pest": "^1.21",
3030
"pestphp/pest-plugin-laravel": "^1.1",
3131
"phpstan/extension-installer": "^1.1",
@@ -48,7 +48,8 @@
4848
"scripts": {
4949
"analyse": "vendor/bin/phpstan analyse",
5050
"test": "vendor/bin/pest",
51-
"test-coverage": "vendor/bin/pest coverage"
51+
"test-coverage": "vendor/bin/pest coverage",
52+
"lint": "vendor/bin/pint"
5253
},
5354
"config": {
5455
"sort-packages": true,

0 commit comments

Comments
 (0)