@@ -34,27 +34,14 @@ jobs:
3434 - name : Install dependencies
3535 run : composer install --no-dev --no-interaction --no-progress
3636
37- # Updating the lists can fail intermittently, typically after Microsoft has released a new package.
38- # This should not be blocking for this job, so ignore any errors from this step.
39- # Ref: https://github.com/dotnet/core/issues/4167
40- - name : Update the available packages list
41- continue-on-error : true
42- run : sudo apt-get update
43-
44- - name : Install xmllint
45- run : sudo apt-get install --no-install-recommends -y libxml2-utils
46-
47- # Show violations inline in the file diff.
48- # @link https://github.com/marketplace/actions/xmllint-problem-matcher
49- - name : Enable showing XML issues inline
50- uses : korelstar/xmllint-problem-matcher@v1
51-
52- # Validate the xml file.
53- # @link http://xmlsoft.org/xmllint.html
54- - name : Validate against schema
55- run : xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd PHPCompatibilityWP/ruleset.xml
37+ - name : Validate Ruleset XML file against schema
38+ uses : phpcsstandards/xmllint-validate@v1
39+ with :
40+ pattern : " ./*/ruleset.xml"
41+ xsd-file : " vendor/squizlabs/php_codesniffer/phpcs.xsd"
5642
5743 # Check the code-style consistency of the xml file.
44+ # Note: this needs xmllint, but that will be installed via the phpcsstandards/xmllint-validate action runner.
5845 - name : Check code style
5946 run : diff -B ./PHPCompatibilityWP/ruleset.xml <(xmllint --format "./PHPCompatibilityWP/ruleset.xml")
6047
0 commit comments