1- name : ' CI '
1+ name : CI
22
33on :
44 pull_request :
55 push :
66 branches :
7- - ' main'
7+ - main
88
99env :
1010 COMPOSER_ROOT_VERSION : ' 1.99.99'
1111
1212jobs :
1313 lint :
14- name : ' Lint'
15- runs-on : ' ubuntu-latest'
14+ name : Lint
15+ runs-on : ubuntu-latest
1616 steps :
17- - uses : ' actions/checkout@v2 '
18- - uses : ' shivammathur/setup-php@v2'
17+ - uses : actions/checkout@v4
18+ - uses : shivammathur/setup-php@v2
1919 with :
2020 php-version : ' 7.4'
21- coverage : ' none'
22- ini-values : ' memory_limit=-1'
23- tools : ' composer:v2'
24- - uses : ' ramsey/composer-install@v1 '
21+ coverage : none
22+ ini-values : memory_limit=-1
23+ tools : composer:v2
24+ - uses : ramsey/composer-install@v3
2525 - name : ' Lint the PHP source code'
26- run : ' ./vendor/bin/parallel-lint src test'
26+ run : ./vendor/bin/parallel-lint src test
2727
2828 coding-standards :
29- name : ' Coding Standards'
30- runs-on : ' ubuntu-latest'
29+ name : Coding Standards
30+ runs-on : ubuntu-latest
3131 steps :
32- - uses : ' actions/checkout@v2 '
33- - uses : ' shivammathur/setup-php@v2'
32+ - uses : actions/checkout@v4
33+ - uses : shivammathur/setup-php@v2
3434 with :
3535 php-version : ' 7.4'
36- coverage : ' none'
37- ini-values : ' memory_limit=-1'
38- tools : ' composer:v2'
39- - uses : ' ramsey/composer-install@v1 '
40- - name : ' Check coding standards'
41- run : ' ./vendor/bin/phpcs src --standard=psr2 -sp --colors'
36+ coverage : none
37+ ini-values : memory_limit=-1
38+ tools : composer:v2
39+ - uses : ramsey/composer-install@v3
40+ - name : Check coding standards
41+ run : ./vendor/bin/phpcs src --standard=psr2 -sp --colors
4242
4343 unit-tests :
44- name : ' Unit Tests'
45- runs-on : ' ubuntu-latest'
44+ name : Unit Tests
45+ runs-on : ubuntu-latest
4646 continue-on-error : ${{ matrix.experimental }}
4747 strategy :
4848 fail-fast : false
@@ -55,30 +55,32 @@ jobs:
5555 - ' 7.3'
5656 - ' 7.4'
5757 - ' 8.0'
58+ - ' 8.1'
59+ - ' 8.2'
60+ - ' 8.4'
5861 dependencies :
59- - ' lowest'
60- - ' highest'
62+ - lowest
63+ - highest
6164 experimental :
6265 - false
6366 include :
64- - php-version : ' 8.1'
65- experimental : true
66- composer-options : ' --ignore-platform-reqs'
67+ - php-version : ' 8.3'
68+ experimental : false
6769 steps :
68- - uses : ' actions/checkout@v2 '
69- - uses : ' shivammathur/setup-php@v2'
70+ - uses : actions/checkout@v4
71+ - uses : shivammathur/setup-php@v2
7072 with :
7173 php-version : ' ${{ matrix.php-version }}'
72- coverage : ' pcov'
73- ini-values : ' memory_limit=-1'
74- tools : ' composer:v2'
75- - name : ' Prepare for tests'
76- run : ' mkdir -p build/logs'
77- - uses : ' ramsey/composer-install@v1 '
74+ coverage : pcov
75+ ini-values : memory_limit=-1
76+ tools : composer:v2
77+ - name : Prepare for tests
78+ run : mkdir -p build/logs
79+ - uses : ramsey/composer-install@v3
7880 with :
7981 dependency-versions : ' ${{ matrix.dependencies }}'
8082 composer-options : ' ${{ matrix.composer-options }}'
81- - name : ' Run unit tests'
82- run : ' ./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml'
83- - name : ' Publish coverage report to Codecov'
84- uses : ' codecov/codecov-action@v1 '
83+ - name : Run unit tests
84+ run : ./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml
85+ - name : Publish coverage report to Codecov
86+ uses : codecov/codecov-action@v4
0 commit comments