@@ -47,27 +47,15 @@ jobs:
47
47
# Bust the cache at least once a month - output format: YYYY-MM.
48
48
custom-cache-suffix : $(date -u "+%Y-%m")
49
49
50
- # Updating the lists can fail intermittently, typically after Microsoft has released a new package.
51
- # This should not be blocking for this job, so ignore any errors from this step.
52
- # Ref: https://github.com/dotnet/core/issues/4167
53
- - name : Update the available packages list
54
- continue-on-error : true
55
- run : sudo apt-get update
56
-
57
- - name : Install xmllint
58
- run : sudo apt-get install --no-install-recommends -y libxml2-utils
59
-
60
- # Show XML violations inline in the file diff.
61
- # @link https://github.com/marketplace/actions/xmllint-problem-matcher
62
- - name : Enable showing XML issues inline
63
- uses : korelstar/xmllint-problem-matcher@v1
64
-
65
50
# Validate the XML file.
66
- # @link http://xmlsoft.org/xmllint.html
67
51
- name : Validate ruleset against schema
68
- run : xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd VariableAnalysis/ruleset.xml
52
+ uses : phpcsstandards/xmllint-validate@v1
53
+ with :
54
+ pattern : " VariableAnalysis/ruleset.xml"
55
+ xsd-file : " vendor/squizlabs/php_codesniffer/phpcs.xsd"
69
56
70
57
# Check the code-style consistency of the XML file.
58
+ # Note: this needs xmllint, but that will be installed via the phpcsstandards/xmllint-validate action runner in the previous step.
71
59
- name : Check XML code style
72
60
run : diff -B ./VariableAnalysis/ruleset.xml <(xmllint --format "./VariableAnalysis/ruleset.xml")
73
61
0 commit comments