Skip to content

Commit 8e8edb1

Browse files
committed
GH Actions: add some additional XML validation checks
* Check the docs against the schema from PHPCSDevTools. * Check dev tool config files.
1 parent 6866172 commit 8e8edb1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/validate.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,24 @@ 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 well-formedness"
60+
uses: phpcsstandards/xmllint-validate@v1
61+
with:
62+
pattern: "phpunit.xml.dist"
5063

5164
xml-cs:
5265
name: 'XML Code style'

0 commit comments

Comments
 (0)