Skip to content

Commit 01fdb08

Browse files
committed
Fix Pest 4 crash: require Pest 4 only for Laravel 13 in CI
1 parent ef637f6 commit 01fdb08

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4949
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5050
51+
- name: Require Pest 4 for Laravel 13
52+
if: matrix.laravel == '13.*'
53+
run: composer require "pestphp/pest:^4.0" "pestphp/pest-plugin-laravel:^4.0" --dev --no-interaction --no-update
54+
5155
- name: Install dependencies
5256
run: |
5357
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"ext-dom": "*",
3333
"nunomaduro/collision": "^8.0",
3434
"orchestra/testbench": "^9.0|^10.0|^11.0",
35-
"pestphp/pest": "^3.7|^4.0",
36-
"pestphp/pest-plugin-laravel": "^3.1|^4.0",
35+
"pestphp/pest": "^3.7",
36+
"pestphp/pest-plugin-laravel": "^3.1",
3737
"spatie/laravel-ray": "^1.32.6",
3838
"spatie/pest-plugin-snapshots": "^2.0.1"
3939
},

0 commit comments

Comments
 (0)