@@ -3,39 +3,50 @@ 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 : [ '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
6+ run :
7+ runs-on : ${{ matrix.operating-system }}
8+ strategy :
9+ matrix :
10+ operating-system : [ ubuntu-latest ]
11+ php-versions : [ '8.1', '8.2', '8.3', '8.4' ]
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 PHP CodeSniffer
41+ run : composer sniffer:check
42+
43+ - name : Run PHPStan
44+ run : composer stan
45+
46+ - name : Run tests
47+ if : ${{ matrix.php-versions != '8.4' }}
48+ run : composer test
49+
50+ - name : Run tests with coverage
51+ if : ${{ matrix.php-versions == '8.4' }}
52+ run : composer test:coverage
0 commit comments