Skip to content

Commit f42f739

Browse files
committed
Fix Pest 4 crash: require Pest 4 only for Laravel 13 in CI, exclude PHP 8.2 for L13
1 parent 8fe46f2 commit f42f739

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
php: [8.4, 8.3, 8.2]
2121
laravel: [13.*, 12.*, 11.*]
2222
stability: [prefer-lowest, prefer-stable]
23+
exclude:
24+
- php: 8.2
25+
laravel: 13.*
2326

2427
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2528

@@ -39,6 +42,10 @@ jobs:
3942
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4043
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4144
45+
- name: Require Pest 4 for Laravel 13
46+
if: matrix.laravel == '13.*'
47+
run: composer require "pestphp/pest:^4.0" "pestphp/pest-plugin-laravel:^4.0" "pestphp/pest-plugin-arch:^4.0" --dev --no-interaction --no-update
48+
4249
- name: Install dependencies
4350
run: |
4451
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"laravel/pint": "^1.14",
2929
"nunomaduro/collision": "^8.1.1|^7.10.0",
3030
"orchestra/testbench": "^11.0|^10.0|^9.0|^8.22",
31-
"pestphp/pest": "^2.34|^3.0|^4.0",
32-
"pestphp/pest-plugin-arch": "^2.7|^3.0|^4.0",
33-
"pestphp/pest-plugin-laravel": "^2.3|^3.0|^4.0",
31+
"pestphp/pest": "^2.34|^3.0",
32+
"pestphp/pest-plugin-arch": "^2.7|^3.0",
33+
"pestphp/pest-plugin-laravel": "^2.3|^3.0",
3434
"phpstan/extension-installer": "^1.3",
3535
"phpstan/phpstan-deprecation-rules": "^1.1|^2.0",
3636
"phpstan/phpstan-phpunit": "^1.3|^2.0",

0 commit comments

Comments
 (0)