6464 --no-plugins
6565 --no-scripts
6666 --strict
67+ # 02.test.php.test-unit.yml
68+ php-unittest :
69+ continue-on-error : ${{ matrix.php < '8.1' || matrix.php > '8.4' }}
70+ name : PHP Unit Tests
71+ needs :
72+ - lint-php-syntax
73+ - validate-dependencies-file
74+ runs-on : ubuntu-24.04
75+ strategy :
76+ fail-fast : false
77+ matrix :
78+ php :
79+ - 8.0 # from 2020-11 to 2022-11 (2023-11)
80+ - 8.1 # from 2021-11 to 2023-11 (2025-12)
81+ - 8.2 # from 2022-12 to 2024-12 (2026-12)
82+ - 8.3 # from 2023-11 to 2025-12 (2027-12)
83+ - 8.4 # from 2024-11 to 2026-12 (2028-12)
84+ - 8.5 # from 2025-11 to 2027-12 (2029-12)
85+ steps :
86+ - uses : actions/checkout@v4
87+ - uses : shivammathur/setup-php@v2
88+ with :
89+ coverage : xdebug
90+ ini-values : error_reporting=E_ALL, display_errors=On
91+ php-version : ${{ matrix.php }}
92+ - name : Install and Cache Composer dependencies
93+ uses : " ramsey/composer-install@v2"
94+ with :
95+ working-directory : " solid"
96+ env :
97+ COMPOSER_AUTH : ' {"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
98+ - run : bin/phpunit --configuration .config/phpunit.xml.dist
6799 # 03.quality.php.scan.dependencies-vulnerabilities.yml
68100 scan-dependencies-vulnerabilities :
69101 name : Scan Dependencies Vulnerabilities
@@ -81,10 +113,12 @@ jobs:
81113 --no-scripts
82114 # 03.quality.php.lint-quality.yml
83115 php-lint-quality :
116+ needs :
117+ - lint-php-syntax
84118 runs-on : ubuntu-24.04
85119 steps :
86120 - uses : actions/checkout@v4
87- - uses : pipeline-components/php-codesniffer@master
121+ - uses : pipeline-components/php-codesniffer@main
88122 with :
89123 options : --standard=.config/phpcs.xml.dist
90124 # 03.quality.php.lint-version-compatibility.yml
@@ -108,7 +142,7 @@ jobs:
108142 - uses : actions/checkout@v4
109143 - uses : docker://pipelinecomponents/php-codesniffer
110144 with :
111- options : >-
145+ args : >-
112146 phpcs
113147 -s
114148 --extensions=php
0 commit comments