File tree Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -13,33 +13,38 @@ jobs:
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- php-versions : ['7.2', '7.3', '7.4']
17
- name : Tests with PHP ${{ matrix.php-versions }}
16
+ php-version :
17
+ - " 7.2"
18
+ - " 7.3"
19
+ - " 7.4"
20
+ dependencies :
21
+ - " lowest"
22
+ - " highest"
23
+ include :
24
+ - php-version : " 8.0"
25
+ dependencies : " highest"
26
+ composer-options : " --ignore-platform-reqs"
27
+ experimental : true
28
+ name : Tests with PHP ${{ matrix.php-version }} and ${{ matrix.dependencies }} dependencies
18
29
19
30
steps :
20
31
- uses : actions/checkout@v2
21
32
22
33
- name : Setup PHP
23
34
uses : shivammathur/setup-php@v2
24
35
with :
25
- php-version : ${{ matrix.php-versions }}
36
+ php-version : ${{ matrix.php-version }}
26
37
env :
27
38
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
39
29
40
- name : Validate composer
30
41
run : composer validate
31
42
32
- - name : Cache Composer packages
33
- id : composer-cache
34
- uses : actions/cache@v2
43
+ - name : Composer install
44
+ uses : " ramsey/composer-install@v1"
35
45
with :
36
- path : vendor
37
- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38
- restore-keys : |
39
- ${{ runner.os }}-composer-
40
- - name : Install dependencies
41
- if : steps.composer-cache.outputs.cache-hit != 'true'
42
- run : composer install --prefer-dist --no-interaction
46
+ dependency-versions : " ${{ matrix.dependencies }}"
47
+ composer-options : " ${{ matrix.composer-options }}"
43
48
44
49
- name : Run unit tests suite
45
50
run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments