Skip to content

Commit 0f3dd6b

Browse files
Only install legacy factories on laravel 8
1 parent 155c68e commit 0f3dd6b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ jobs:
2424
strategy:
2525
matrix:
2626
php: [7.4, 7.3, 7.2]
27-
laravel: [8.*, 7.*, 6.*, 5.8.*]
27+
laravel: [8, 7, 6, 5.8]
2828
dependency-version: [prefer-stable]
2929
os: [ubuntu-latest]
3030
include:
31-
- laravel: 8.*
31+
- laravel: 8
3232
testbench: 6.*
33-
- laravel: 7.*
33+
- laravel: 7
3434
testbench: 5.*
35-
- laravel: 6.*
35+
- laravel: 6
3636
testbench: 4.*
37-
- laravel: 5.8.*
37+
- laravel: 5.8
3838
testbench: 3.8.*
3939
exclude:
4040
- laravel: 8.*
@@ -61,13 +61,13 @@ jobs:
6161

6262
- name: Install dependencies
6363
run: |
64-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
64+
composer require "laravel/framework:${{ matrix.laravel }}.*" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
6565
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
6666
6767
- name: Install legacy factories
6868
run: |
6969
composer require "laravel/legacy-factories" --no-interaction --no-update
70-
if: matrix.laravel == 8.0
70+
if: "matrix.laravel >= 8"
7171

7272
- name: Execute tests
7373
run: vendor/bin/phpunit --testdox --configuration phpunit.xml.dist

0 commit comments

Comments
 (0)