Skip to content

Commit f040d95

Browse files
committed
edit github action phpunit.yml
1 parent 4f70cff commit f040d95

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/phpunit.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ jobs:
99
strategy:
1010
matrix:
1111
php_version: [8.1, 8.2, 8.3]
12-
prefer:
13-
- stable
14-
- lowest
12+
laravel_version: [10.*, 11.*]
13+
stability: [prefer-lowest, prefer-stable]
14+
include:
15+
- laravel: 10.*
16+
testbench-core: ^8.0
17+
- laravel: 11.*
18+
testbench-core: ^9.0
1519

16-
name: PHP-${{ matrix.php_version }}-${{ matrix.prefer }}
20+
name: PHP-${{ matrix.php_version }} - LARAVEL${{ matrix.laravel_version }} - ${{ matrix.stability }}
1721

1822
steps:
1923
- name: Checkout code
@@ -25,7 +29,9 @@ jobs:
2529
php-version: ${{ matrix.php }}
2630

2731
- name: Install dependencies
28-
run: composer install --prefer-dist --no-interaction --no-progress
32+
run: |
33+
composer require "laravel/framework:${{ matrix.laravel_version }}" "orchestra/testbench-core:${{ matrix.testbench-core }}" --dev --no-interaction --no-update
34+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
2935
3036
- name: Run PHPUnit
3137
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)