@@ -3,46 +3,39 @@ name: build
33on : [ push, pull_request ]
44
55jobs :
6- run :
7- runs-on : ${{ matrix.operating-system }}
8- strategy :
9- matrix :
10- operating-system : [ubuntu-latest]
11- php-versions : ['7.3', '7.4', '8.0']
12- name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
13-
14- steps :
15- - name : Checkout
16- uses : actions/checkout@v1
17-
18- - name : Setup PHP
19- uses : shivammathur/setup-php@v2
20- with :
21- php-version : ${{ matrix.php-versions }}
22- extensions : mbstring, intl, zip
23- coverage : none
24-
25- - name : Check PHP Version
26- run : php -v
27-
28- - name : Check Composer Version
29- run : composer -V
30-
31- - name : Check PHP Extensions
32- run : php -m
33-
34- - name : Validate composer.json and composer.lock
35- run : composer validate
36-
37- - name : Install dependencies for PHP 7
38- if : matrix.php-versions < '8.0'
39- run : composer update --prefer-dist --no-progress
40-
41- - name : Install dependencies for PHP 8
42- if : matrix.php-versions >= '8.0'
43- run : composer update --prefer-dist --no-progress --ignore-platform-req=php
44-
45- - name : Run test suite
46- run : composer check
47- env :
48- PHP_CS_FIXER_IGNORE_ENV : 1
6+ run :
7+ runs-on : ${{ matrix.operating-system }}
8+ strategy :
9+ matrix :
10+ operating-system : [ ubuntu-latest ]
11+ php-versions : [ '8.1', '8.2' ]
12+ name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v1
17+
18+ - name : Setup PHP
19+ uses : shivammathur/setup-php@v2
20+ with :
21+ php-version : ${{ matrix.php-versions }}
22+ extensions : mbstring, intl, zip
23+ coverage : none
24+
25+ - name : Check PHP Version
26+ run : php -v
27+
28+ - name : Check Composer Version
29+ run : composer -V
30+
31+ - name : Check PHP Extensions
32+ run : php -m
33+
34+ - name : Validate composer.json and composer.lock
35+ run : composer validate
36+
37+ - name : Install dependencies
38+ run : composer install --prefer-dist --no-progress --no-suggest
39+
40+ - name : Run test suite
41+ run : composer test:all
0 commit comments