Skip to content

Commit 746c1ff

Browse files
committed
Support PEST v4
Run test coverage only on PHP 8.4
1 parent 72882d9 commit 746c1ff

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
--no-interaction --no-update
5454
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5555
56-
- name: Execute tests
57-
run: |
58-
vendor/bin/pest
56+
- name: Run tests (no coverage)
57+
if: matrix.php != '8.4'
58+
run: vendor/bin/pest
59+
60+
- name: Run tests with coverage (PHP 8.4 only)
61+
if: matrix.php == '8.4'
62+
run: vendor/bin/pest --coverage

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
],
2828
"require": {
2929
"php": "^8.2",
30-
"illuminate/http": "^11.0||^12.0",
31-
"illuminate/support": "^11.0||^12.0",
30+
"illuminate/http": "^11.0 || ^12.0",
31+
"illuminate/support": "^11.0 || ^12.0",
3232
"monolog/monolog": "^3.9"
3333
},
3434
"require-dev": {
35-
"laravel/framework": "^11.0||^12.0",
35+
"laravel/framework": "^11.0 || ^12.0",
3636
"laravel/pint": "^1.25",
37-
"orchestra/testbench": "^9.0||^10.0",
38-
"pestphp/pest": "^3.8",
39-
"pestphp/pest-plugin-arch": "^3.1",
40-
"pestphp/pest-plugin-laravel": "^3.2",
37+
"orchestra/testbench": "^9.0 || ^10.0",
38+
"pestphp/pest": "^3.8 || 4.1",
39+
"pestphp/pest-plugin-arch": "^3.1 || 4.0",
40+
"pestphp/pest-plugin-laravel": "^3.2 || 4.0",
4141
"saloonphp/laravel-http-sender": "^3.1",
4242
"saloonphp/laravel-plugin": "^3.7",
4343
"spatie/invade": "^2.1"

0 commit comments

Comments
 (0)