Skip to content

Commit 175fe83

Browse files
Allow laravel 10 (#9)
* Allow laravel 10 * Added Laravel 10 to the test suite * Added illuminate/contracts 10 to the test suite --------- Co-authored-by: Bas <info@laravel-freelancer.nl>
1 parent 78af711 commit 175fe83

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/run-tests.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest]
1212
php: [8.1, 8.2]
13-
laravel: [9.*]
13+
laravel: [9.*, 10.*]
1414
stability: [prefer-stable]
1515
include:
1616
- laravel: 9.*
1717
testbench: 7.*
18+
illuminate-contracts: 9.*
19+
- laravel: 10.*
20+
testbench: 8.*
21+
illuminate-contracts: 10.*
1822

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

@@ -36,7 +40,7 @@ jobs:
3640
3741
- name: Install dependencies
3842
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "illuminate/contracts:${{ matrix.illuminate-contracts }}" --no-interaction --no-update --dev
4044
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4145
4246
- name: Execute tests

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
"require": {
2020
"php": "^8.1",
2121
"guzzlehttp/guzzle": "^7.4",
22-
"illuminate/contracts": "^9.0",
23-
"laravel/pint": "^1.2.1",
22+
"illuminate/contracts": "^9.0|^10.0",
2423
"nunomaduro/termwind": "^1.10",
2524
"phpmd/phpmd": "^2.12",
2625
"spatie/laravel-package-tools": "^1.9.2"
2726
},
2827
"require-dev": {
28+
"laravel/pint": "^1.2.1",
2929
"nunomaduro/collision": "^6.0",
3030
"nunomaduro/larastan": "^2.2.0",
3131
"orchestra/testbench": "^7.0",
3232
"pestphp/pest": "^1.21",
3333
"pestphp/pest-plugin-faker": "^1.0",
34-
"pestphp/pest-plugin-laravel": "^1.1",
34+
"pestphp/pest-plugin-laravel": "^1.1|^2.0",
3535
"phpstan/extension-installer": "^1.1",
3636
"phpstan/phpstan": "^1.8",
3737
"phpstan/phpstan-deprecation-rules": "^1.0",

0 commit comments

Comments
 (0)