5050 - name : Install Composer dependencies
5151 uses : " ramsey/composer-install@v2"
5252
53+ # @link http://xmlsoft.org/xmllint.html
5354 - name : Install xmllint
5455 run : |
5556 sudo apt-get update
@@ -59,25 +60,20 @@ jobs:
5960 # @link https://github.com/marketplace/actions/xmllint-problem-matcher
6061 - uses : korelstar/xmllint-problem-matcher@v1
6162
62- # Validate the Docs XSD file.
63- # @link http://xmlsoft.org/xmllint.html
63+ # Validate the XSD and XML files against schema.
6464 - name : Validate Docs XSD against schema
6565 run : xmllint --noout --schema http://www.w3.org/2001/XMLSchema.xsd DocsXsd/phpcsdocs.xsd
6666
67- # Validate the XML file.
68- # @link http://xmlsoft.org/xmllint.html
69- - name : Validate ruleset against schema
67+ - name : Validate PHPCSDebug ruleset against schema
7068 run : xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd PHPCSDebug/ruleset.xml
7169
72- # Check the code-style consistency of the XML file.
73- - name : Check XML code style
74- run : diff -B ./PHPCSDebug/ruleset.xml <(xmllint --format "./PHPCSDebug/ruleset.xml")
75-
76- # Validate the Docs XML file(s).
77- # @link http://xmlsoft.org/xmllint.html
7870 - name : Validate docs against schema
7971 run : xmllint --noout --schema DocsXsd/phpcsdocs.xsd ./PHPCSDebug/Docs/*/*Standard.xml
8072
73+ # Check code-style consistency of the XSD and XML files.
74+ - name : Check Ruleset XML code style
75+ run : diff -B ./PHPCSDebug/ruleset.xml <(xmllint --format "./PHPCSDebug/ruleset.xml")
76+
8177 # Check the code-style consistency of the PHP files.
8278 - name : Check PHP code style
8379 continue-on-error : true
0 commit comments