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