Skip to content

Commit 614da61

Browse files
Update test.yml
1 parent a7651f1 commit 614da61

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,30 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php-version: ['8.2', '8.3', '8.4']
13-
laravel-version: ['11.0', '12.0']
12+
php: [8.2, 8.3, 8.4]
13+
laravel: [11.*, 12.*]
14+
stability: [prefer-lowest, prefer-stable]
15+
include:
16+
- laravel: 12.*
17+
testbench: ^10.0
18+
- laravel: 11.*
19+
testbench: ^9.0
20+
21+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
1422

1523
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
1627
- name: Setup PHP
1728
uses: shivammathur/setup-php@v2
1829
with:
19-
php-version: ${{ matrix.php-version }}
20-
21-
- uses: actions/checkout@v2
30+
php-version: ${{ matrix.php }}
2231

23-
- name: Install laravel
24-
run: composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress
32+
- name: Install dependencies
33+
run: |
34+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
2536
2637
- name: Run unit tests
2738
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)