Skip to content

Commit 47a3cf1

Browse files
committed
GH Actions: add some additional XML validation checks
... for dev tool files.
1 parent c982928 commit 47a3cf1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/cs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,36 @@ jobs:
6969
pattern: "PHPCSDebug/Docs/*/*Standard.xml"
7070
xsd-file: "DocsXsd/phpcsdocs.xsd"
7171

72+
- name: Validate Project PHPCS ruleset against schema
73+
uses: phpcsstandards/xmllint-validate@v1
74+
with:
75+
pattern: "phpcs.xml.dist"
76+
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
77+
78+
- name: "Validate PHPUnit < 10 config for use with PHPUnit 8"
79+
uses: phpcsstandards/xmllint-validate@v1
80+
with:
81+
pattern: "phpunitlte9.xml.dist"
82+
xsd-file: "vendor/phpunit/phpunit/schema/8.5.xsd"
83+
84+
- name: "Validate PHPUnit < 10 config for use with PHPUnit 9"
85+
uses: phpcsstandards/xmllint-validate@v1
86+
with:
87+
pattern: "phpunitlte9.xml.dist"
88+
xsd-file: "vendor/phpunit/phpunit/schema/9.5.xsd"
89+
90+
- name: "Validate PHPUnit 10+ config for use with PHPUnit 10"
91+
uses: phpcsstandards/xmllint-validate@v1
92+
with:
93+
pattern: "phpunit.xml.dist"
94+
xsd-file: "vendor/phpunit/phpunit/schema/10.5.xsd"
95+
96+
- name: "Validate PHPUnit 10+ config for use with PHPUnit 11"
97+
uses: phpcsstandards/xmllint-validate@v1
98+
with:
99+
pattern: "phpunit.xml.dist"
100+
xsd-file: "vendor/phpunit/phpunit/phpunit.xsd"
101+
72102
# Check the code-style consistency of the PHP files.
73103
- name: Check PHP code style
74104
id: phpcs

0 commit comments

Comments
 (0)