File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : PHP
22
3- on : [push, pull_request]
3+ on : [ push, pull_request ]
44
55jobs :
66 run :
77 runs-on : ${{ matrix.operating-system }}
88 strategy :
99 matrix :
10- operating-system : [ubuntu-latest]
11- php-versions : ['7.2', '7.3', '7.4', '8.0']
10+ operating-system : [ ubuntu-latest ]
11+ php-versions : [ '7.2', '7.3', '7.4', '8.0' ]
1212 name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313
1414 steps :
3434 - name : Validate composer.json and composer.lock
3535 run : composer validate
3636
37- - name : Install dependencies
38- run : composer install --prefer-dist --no-progress --no-suggest
37+ - name : Install dependencies for PHP 7
38+ run : composer update --prefer-dist --no-progress
39+ with :
40+ php-version : [ '7.2', '7.3', '7.4' ]
41+
42+ - name : Install dependencies for PHP 8
43+ run : composer update --prefer-dist --no-progress --ignore-platform-reqs
44+ with :
45+ php-version : [ '8.0' ]
3946
4047 - name : Run test suite
4148 run : composer check
You can’t perform that action at this time.
0 commit comments