Skip to content

Commit 3316d8f

Browse files
committed
Update workflow
1 parent 186af65 commit 3316d8f

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

.github/workflows/run-tests.yml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,40 @@ on: [ push, pull_request ]
44

55
jobs:
66
test:
7-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-latest
88
strategy:
99
fail-fast: true
1010
matrix:
11-
os: [ ubuntu-latest ]
12-
php: [ 7.1, 7.2, 7.3, 7.4, 8.0 ]
13-
laravel: [ 5.6.*, 5.7.*, 5.8.*, 6.*, 7.*, 8.* ]
11+
php: [ 8.0, 8.1 ]
12+
laravel: [ 8.* ]
1413
dependency-version: [ prefer-stable ]
1514
include:
1615
- laravel: 5.6.*
16+
php: 7.1
1717
testbench: 3.6.*
1818
- laravel: 5.7.*
19+
php: 7.2
1920
testbench: 3.7.*
2021
- laravel: 5.8.*
22+
php: 7.2
2123
testbench: 3.8.*
2224
- laravel: 6.*
25+
php: 7.2
26+
testbench: 4.*
27+
- laravel: 6.*
28+
php: 8.0
2329
testbench: 4.*
2430
- laravel: 7.*
31+
php: 7.2
32+
testbench: 5.*
33+
- laravel: 7.*
34+
php: 8.0
2535
testbench: 5.*
2636
- laravel: 8.*
37+
php: 7.3
2738
testbench: 6.*
28-
exclude:
29-
- laravel: 8.*
30-
php: 7.1
3139
- laravel: 8.*
32-
php: 7.2
33-
- laravel: 7.*
34-
php: 7.1
35-
- laravel: 6.*
36-
php: 7.1
37-
- laravel: 5.8.*
38-
php: 8.0
39-
- laravel: 5.7.*
40-
php: 8.0
41-
- laravel: 5.6.*
42-
php: 8.0
40+
testbench: 6.*
4341

4442
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
4543

@@ -61,9 +59,7 @@ jobs:
6159
coverage: xdebug
6260

6361
- name: Install dependencies
64-
run: |
65-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
66-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
62+
run: composer update --with="illuminate/support:${{ matrix.laravel }}" --with="orchestra/testbench:${{ matrix.testbench }}" --prefer-dist --no-interaction --no-progress
6763

6864
- name: Execute tests
6965
run: vendor/bin/phpunit --coverage-clover=coverage.xml

0 commit comments

Comments
 (0)