Skip to content

Commit ce13c97

Browse files
committed
GH Actions: add some additional XML validation checks
... for dev tool files.
1 parent 8e5edbf commit ce13c97

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/basics.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ jobs:
6565
pattern: "./*/Docs/*/*Standard.xml"
6666
xsd-file: "vendor/phpcsstandards/phpcsdevtools/DocsXsd/phpcsdocs.xsd"
6767

68+
- name: Validate Project PHPCS ruleset against schema
69+
uses: phpcsstandards/xmllint-validate@v1
70+
with:
71+
pattern: "phpcs.xml.dist"
72+
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
73+
74+
- name: "Validate PHPUnit config for use with PHPUnit 8"
75+
uses: phpcsstandards/xmllint-validate@v1
76+
with:
77+
pattern: "phpunit.xml.dist"
78+
xsd-file: "vendor/phpunit/phpunit/schema/8.5.xsd"
79+
80+
- name: "Validate PHPUnit config for use with PHPUnit 9"
81+
uses: phpcsstandards/xmllint-validate@v1
82+
with:
83+
pattern: "phpunit.xml.dist"
84+
xsd-file: "vendor/phpunit/phpunit/schema/9.2.xsd"
85+
6886
# Check the code-style consistency of the PHP files.
6987
- name: Check PHP code style
7088
id: phpcs

0 commit comments

Comments
 (0)