Skip to content

Commit e30ff79

Browse files
authored
Merge pull request #148 from spatie/support-laravel-13
Support Laravel 13
2 parents f0ed299 + 5dee313 commit e30ff79

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/run-tests.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,19 @@ jobs:
1616
fail-fast: true
1717
matrix:
1818
os: [ubuntu-latest, windows-latest]
19-
php: [8.2]
20-
laravel: ['11.*', '12.*']
19+
php: [8.2, 8.3]
20+
laravel: ['11.*', '12.*', '13.*']
2121
stability: [prefer-stable]
22+
exclude:
23+
- php: 8.2
24+
laravel: 13.*
2225
include:
2326
- laravel: 11.*
2427
testbench: 9.*
2528
- laravel: 12.*
2629
testbench: 10.*
30+
- laravel: 13.*
31+
testbench: 11.*
2732

2833
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2934

@@ -43,6 +48,11 @@ jobs:
4348
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4449
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4550
51+
- name: Require Pest 4 for Laravel 13
52+
if: matrix.laravel == '13.*'
53+
shell: bash
54+
run: composer require "pestphp/pest:^4.0" "pestphp/pest-plugin-laravel:^4.0" --dev --no-interaction --no-update
55+
4656
- name: Install dependencies
4757
run: |
4858
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
],
2323
"require": {
2424
"php": "^8.2",
25-
"illuminate/contracts": "^11.0|^12.0",
26-
"illuminate/support": "^11.0|^12.0",
25+
"illuminate/contracts": "^11.0|^12.0|^13.0",
26+
"illuminate/support": "^11.0|^12.0|^13.0",
2727
"livewire/livewire": "^4.0",
2828
"spatie/laravel-collection-macros": "^7.13|^8.0",
2929
"spatie/laravel-package-tools": "^1.16.1"
3030
},
3131
"require-dev": {
3232
"ext-dom": "*",
3333
"nunomaduro/collision": "^8.0",
34-
"orchestra/testbench": "^9.0|^10.0",
34+
"orchestra/testbench": "^9.0|^10.0|^11.0",
3535
"pestphp/pest": "^3.7",
3636
"pestphp/pest-plugin-laravel": "^3.1",
3737
"spatie/laravel-ray": "^1.32.6",

phpunit.xml.dist

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
<directory>tests</directory>
66
</testsuite>
77
</testsuites>
8-
<coverage>
9-
<report>
10-
<html outputDirectory="build/coverage"/>
11-
<text outputFile="build/coverage.txt"/>
12-
<clover outputFile="build/logs/clover.xml"/>
13-
</report>
14-
</coverage>
158
<logging>
169
<junit outputFile="build/report.junit.xml"/>
1710
</logging>

0 commit comments

Comments
 (0)