Skip to content

Commit 7157da2

Browse files
committed
Add PHP Codesniffer to PHP GitHub Workflow.
1 parent 63e36b5 commit 7157da2

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/php.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
--exclude vendor
5252
--no-progress
5353
.
54-
# # 01.quality.php.validate.dependencies-file.yml
54+
55+
# 01.quality.php.validate.dependencies-file.yml
5556
validate-dependencies-file:
5657
name: Validate dependencies file
5758
runs-on: ubuntu-24.04
@@ -63,6 +64,7 @@ jobs:
6364
--no-plugins
6465
--no-scripts
6566
--strict
67+
6668
# 02.test.php.test-unit.yml
6769
php-unittest:
6870
name: PHP Unit Tests
@@ -89,6 +91,7 @@ jobs:
8991
env:
9092
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
9193
- run: vendor/bin/phpunit --configuration tests/phpunit/phpunit.xml
94+
9295
# 03.quality.php.scan.dependencies-vulnerabilities.yml
9396
scan-dependencies-vulnerabilities:
9497
name: Scan Dependencies Vulnerabilities
@@ -107,6 +110,24 @@ jobs:
107110
--no-dev
108111
--no-plugins
109112
--no-scripts
113+
114+
115+
# 03.quality.php.lint-quality.yml
116+
php-lint-quality:
117+
needs:
118+
- lint-php-syntax
119+
runs-on: ubuntu-24.04
120+
steps:
121+
- uses: actions/checkout@v4
122+
- uses: docker://pipelinecomponents/php-codesniffer
123+
with:
124+
args: >-
125+
phpcs
126+
--standard=.config/phpcs.xml.dist
127+
--report-full
128+
--report-summary
129+
.
130+
110131
# 03.quality.php.lint-version-compatibility.yml
111132
php-check-version-compatibility:
112133
name: PHP Version Compatibility

0 commit comments

Comments
 (0)