Skip to content

Commit ab4beb8

Browse files
authored
Add Laravel 11 Support (#17)
Add Laravel 11 Support
1 parent 40f9dff commit ab4beb8

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

.github/workflows/run-tests.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,36 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
13-
fail-fast: false
13+
fail-fast: true
1414
matrix:
15-
os: [ ubuntu-latest ]
16-
php: [ 8.2, 8.1 ]
17-
laravel: [ 9.*, 10.* ]
18-
stability: [ prefer-lowest, prefer-stable ]
15+
os: [ubuntu-latest]
16+
php: [8.3, 8.2, 8.1]
17+
laravel: ["^11.0", "^10.0", "^9.38"]
18+
stability: [prefer-lowest, prefer-stable]
1919
include:
20-
- laravel: 9.*
21-
testbench: 7.*
22-
carbon: ^2.63
23-
- laravel: 10.*
20+
- laravel: "^11.0"
21+
testbench: 9.*
22+
- laravel: "^10.0"
2423
testbench: 8.*
25-
carbon: ^2.63
24+
- laravel: "^9.38"
25+
testbench: 7.*
26+
exclude:
27+
- laravel: "^11.0"
28+
php: 8.1
2629

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

2932
steps:
3033
- name: Checkout code
31-
uses: actions/checkout@v4
34+
uses: actions/checkout@v3
3235

3336
- name: Setup PHP
3437
uses: shivammathur/setup-php@v2
@@ -44,11 +47,8 @@ jobs:
4447
4548
- name: Install dependencies
4649
run: |
47-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
48-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
49-
50-
- name: List Installed Dependencies
51-
run: composer show -D
50+
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update
51+
composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }}
5252
5353
- name: Execute tests
5454
run: vendor/bin/pest

composer.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,21 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/contracts": "^9.38|^10.0",
20+
"illuminate/contracts": "^9.38|^10.0|^11.0",
2121
"spatie/laravel-package-tools": "^1.14.0",
22-
"symfony/mailer": "^6.0"
22+
"symfony/mailer": "^6.0|^7.0"
2323
},
2424
"require-dev": {
2525
"guzzlehttp/guzzle": "^7.5",
2626
"laravel/pint": "^1.0",
27-
"nunomaduro/collision": "^6.0",
27+
"nunomaduro/collision": "^6.0|^7.0|^8.0",
2828
"nunomaduro/larastan": "^2.0.1",
29-
"orchestra/testbench": "^7.0|^8.0",
30-
"pestphp/pest": "^1.21",
31-
"pestphp/pest-plugin-laravel": "^1.1",
29+
"orchestra/testbench": "^7.0|^8.0|^9.0",
30+
"pestphp/pest": "^1.21|^2.0",
31+
"pestphp/pest-plugin-laravel": "^1.21|^2.0",
3232
"phpstan/extension-installer": "^1.1",
3333
"phpstan/phpstan-deprecation-rules": "^1.0",
3434
"phpstan/phpstan-phpunit": "^1.0",
35-
"phpunit/phpunit": "^9.5",
3635
"spatie/laravel-ray": "^1.26"
3736
},
3837
"autoload": {

0 commit comments

Comments
 (0)