Skip to content

Commit c76e64e

Browse files
committed
GH Actions: add some additional XML validation checks
... for dev tool files.
1 parent 754ed15 commit c76e64e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: .github/workflows/basic-qa.yml

+18
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ jobs:
8282
pattern: "./WordPress/Docs/*/*Standard.xml"
8383
xsd-file: "vendor/phpcsstandards/phpcsdevtools/DocsXsd/phpcsdocs.xsd"
8484

85+
- name: Validate Project PHPCS ruleset against schema
86+
uses: phpcsstandards/xmllint-validate@v1
87+
with:
88+
pattern: ".phpcs.xml.dist"
89+
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
90+
91+
- name: "Validate PHPUnit config for use with PHPUnit 8"
92+
uses: phpcsstandards/xmllint-validate@v1
93+
with:
94+
pattern: "phpunit.xml.dist"
95+
xsd-file: "vendor/phpunit/phpunit/schema/8.5.xsd"
96+
97+
- name: "Validate PHPUnit config for use with PHPUnit 9"
98+
uses: phpcsstandards/xmllint-validate@v1
99+
with:
100+
pattern: "phpunit.xml.dist"
101+
xsd-file: "vendor/phpunit/phpunit/schema/9.2.xsd"
102+
85103
# Check that the sniffs available are feature complete.
86104
# For now, just check that all sniffs have unit tests.
87105
# At a later stage the documentation check can be activated.

0 commit comments

Comments
 (0)