File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -13,33 +13,39 @@ 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
+ experimental :
24
+ - false
25
+ include :
26
+ - php-version : " 8.0"
27
+ dependencies : " highest"
28
+ composer-options : " --ignore-platform-reqs"
29
+ name : Tests with PHP ${{ matrix.php-version }} and ${{ matrix.dependencies }} dependencies
18
30
19
31
steps :
20
32
- uses : actions/checkout@v2
21
33
22
34
- name : Setup PHP
23
35
uses : shivammathur/setup-php@v2
24
36
with :
25
- php-version : ${{ matrix.php-versions }}
37
+ php-version : ${{ matrix.php-version }}
26
38
env :
27
39
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
40
29
41
- name : Validate composer
30
42
run : composer validate
31
43
32
- - name : Cache Composer packages
33
- id : composer-cache
34
- uses : actions/cache@v2
44
+ - name : Composer install
45
+ uses : " ramsey/composer-install@v1"
35
46
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
47
+ dependency-versions : " ${{ matrix.dependencies }}"
48
+ composer-options : " ${{ matrix.composer-options }}"
43
49
44
50
- name : Run unit tests suite
45
51
run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments