@@ -3,12 +3,12 @@ name: "Continuous Integration"
33on :
44 push :
55 paths-ignore :
6- - ' doc/**'
7- - ' .github/**'
6+ - " doc/**"
7+ - " .github/**"
88 pull_request :
99 paths-ignore :
10- - ' doc/**'
11- - ' .github/**'
10+ - " doc/**"
11+ - " .github/**"
1212
1313jobs :
1414 phpunit :
@@ -21,53 +21,45 @@ jobs:
2121 fail-fast : false
2222 matrix :
2323 php-version :
24- - ' 8.1'
25- - ' 8.2'
26- - ' 8.3'
24+ - " 8.1"
25+ - " 8.2"
26+ - " 8.3"
27+ - " 8.4"
2728 dependency-versions : [lowest, highest]
2829 experimental : [false]
29- include :
30- - php-version : ' 8.4'
31- dependency-versions : lowest
32- experimental : true
33- composer-options : --ignore-platform-reqs
34- - php-version : ' 8.4'
35- dependency-versions : highest
36- experimental : true
37- composer-options : --ignore-platform-reqs
3830
3931 steps :
40- - name : Repository checkout
41- uses : actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
32+ - name : Repository checkout
33+ uses : actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
4234
43- - name : Setup PHP with PECL extension
44- uses : shivammathur/setup-php@efffd0e4f2504f936fcfe3b69293d31ce0e2fd7a # v2.30.3
45- with :
46- php-version : ${{ matrix.php-version }}
47- tools : composer:v2
48- coverage : pcov
35+ - name : Setup PHP with PECL extension
36+ uses : shivammathur/setup-php@efffd0e4f2504f936fcfe3b69293d31ce0e2fd7a # v2.30.3
37+ with :
38+ php-version : ${{ matrix.php-version }}
39+ tools : composer:v2
40+ coverage : pcov
4941
50- - name : Validate composer.json and composer.lock
51- run : composer validate --strict
42+ - name : Validate composer.json and composer.lock
43+ run : composer validate --strict
5244
53- - name : Install dependencies
54- uses : ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0
55- with :
56- dependency-versions : ${{ matrix.dependency-versions }}
57- composer-options : ${{ matrix.composer-options }}
45+ - name : Install dependencies
46+ uses : ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0
47+ with :
48+ dependency-versions : ${{ matrix.dependency-versions }}
49+ composer-options : ${{ matrix.composer-options }}
5850
59- - name : Pull the docker image used by the tests.
60- run : docker pull busybox:latest
51+ - name : Pull the docker image used by the tests.
52+ run : docker pull busybox:latest
6153
62- - name : Run PHPUnit test suite
63- run : composer run-script test-ci
54+ - name : Run PHPUnit test suite
55+ run : composer run-script test-ci
6456
65- - name : Publish code coverage
66- uses : paambaati/codeclimate-action@a1831d7162ea1fbc612ffe5fb3b90278b7999d59 # v5.0.0
67- env :
68- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
69- with :
70- coverageCommand : composer run-script test-coverage
71- coverageLocations : |
72- ${{github.workspace}}/clover.xml:clover
73- if : github.event_name != 'pull_request'
57+ - name : Publish code coverage
58+ uses : paambaati/codeclimate-action@a1831d7162ea1fbc612ffe5fb3b90278b7999d59 # v5.0.0
59+ env :
60+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
61+ with :
62+ coverageCommand : composer run-script test-coverage
63+ coverageLocations : |
64+ ${{github.workspace}}/clover.xml:clover
65+ if : github.event_name != 'pull_request'
0 commit comments