@@ -42,11 +42,31 @@ jobs:
4242 pattern : " ./src/Standards/*/ruleset.xml"
4343 xsd-file : " phpcs.xsd"
4444
45- # Validate the basic well-formedness of the Documentation XML files.
45+ # Validate the Documentation XML files.
4646 - name : Validate documentation XML
4747 uses : phpcsstandards/xmllint-validate@v1
4848 with :
4949 pattern : " ./src/Standards/*/Docs/*/*Standard.xml"
50+ xsd-url : " https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
51+
52+ # Validate dev tool related XML files.
53+ - name : Validate Project PHPCS ruleset against schema
54+ uses : phpcsstandards/xmllint-validate@v1
55+ with :
56+ pattern : " phpcs.xml.dist"
57+ xsd-file : " phpcs.xsd"
58+
59+ - name : " Validate PHPUnit config for use with PHPUnit 8"
60+ uses : phpcsstandards/xmllint-validate@v1
61+ with :
62+ pattern : " phpunit.xml.dist"
63+ xsd-file : " vendor/phpunit/phpunit/schema/8.5.xsd"
64+
65+ - name : " Validate PHPUnit config for use with PHPUnit 9"
66+ uses : phpcsstandards/xmllint-validate@v1
67+ with :
68+ pattern : " phpunit.xml.dist"
69+ xsd-file : " vendor/phpunit/phpunit/schema/9.2.xsd"
5070
5171 xml-cs :
5272 name : ' XML Code style'
7999 # Check the code-style consistency of the XML files.
80100 - name : Check XML code style
81101 run : |
102+ diff -B ./phpcs.xsd <(xmllint --format "./phpcs.xsd")
82103 diff -B ./phpcs.xml.dist <(xmllint --format "./phpcs.xml.dist")
104+ diff -B ./phpunit.xml.dist <(xmllint --format "./phpunit.xml.dist")
83105 diff -B ./src/Standards/Generic/ruleset.xml <(xmllint --format "./src/Standards/Generic/ruleset.xml")
84106 diff -B ./src/Standards/MySource/ruleset.xml <(xmllint --format "./src/Standards/MySource/ruleset.xml")
85107 diff -B ./src/Standards/PEAR/ruleset.xml <(xmllint --format "./src/Standards/PEAR/ruleset.xml")
0 commit comments