Skip to content

Commit 43112a7

Browse files
authored
Update tests.yml
1 parent 0c412a2 commit 43112a7

File tree

1 file changed

+37
-20
lines changed

1 file changed

+37
-20
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,62 @@ jobs:
77
strategy:
88
fail-fast: true
99
matrix:
10-
php: [ 7.4, 8.1, 8.3 ]
11-
laravel: [ 6.*, 8.*, 9.*, 12.* ]
12-
exclude:
13-
- php: 8.1
14-
laravel: 6.*
15-
- php: 8.3
16-
laravel: 6.*
17-
- php: 7.4
18-
laravel: 9.*
19-
- php: 7.4
20-
laravel: 12.*
2110
include:
22-
- aravel: 6.*
11+
# PHP 7.4 supports Laravel 6 & 8
12+
- php: 7.4
13+
laravel: 6.*
2314
testbench: 4.*
2415
phpunit: 8.*
25-
- laravel: 8.*
16+
- php: 7.4
17+
laravel: 8.*
2618
testbench: 6.*
2719
phpunit: 9.*
28-
- laravel: 9.*
20+
21+
# PHP 8.1 supports Laravel 8 & 9
22+
- php: 8.1
23+
laravel: 8.*
24+
testbench: 6.*
25+
phpunit: 9.*
26+
- php: 8.1
27+
laravel: 9.*
28+
testbench: 7.*
29+
phpunit: 9.*
30+
31+
# PHP 8.3 supports Laravel 8, 9, and 12
32+
- php: 8.3
33+
laravel: 8.*
34+
testbench: 6.*
35+
phpunit: 9.*
36+
- php: 8.3
37+
laravel: 9.*
2938
testbench: 7.*
3039
phpunit: 9.*
31-
- laravel: 12.*
40+
- php: 8.3
41+
laravel: 12.*
3242
testbench: 10.x
3343
phpunit: 11.*
44+
3445
steps:
3546
- name: Check out repository code
36-
uses: actions/checkout@v2
47+
uses: actions/checkout@v4
48+
3749
- name: Setup PHP
3850
uses: shivammathur/setup-php@v2
3951
with:
4052
php-version: ${{ matrix.php }}
53+
4154
- name: Install dependencies
4255
run: |
43-
composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
44-
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
56+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
57+
composer update --prefer-stable --prefer-dist --no-interaction
58+
4559
- name: Cache dependencies
46-
uses: actions/cache@v1
60+
uses: actions/cache@v3
4761
with:
4862
path: ~/.composer/cache/files
49-
key: dependencies-${{ matrix.dependency-version }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
63+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json', 'composer.lock') }}
64+
restore-keys: |
65+
dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-
66+
5067
- name: Execute tests
5168
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)