From 904835abca953b80dcc11545e7efc2ec3f792bc0 Mon Sep 17 00:00:00 2001 From: Jim Winstead Date: Wed, 21 Aug 2024 20:08:05 -0700 Subject: [PATCH] Validate all of the XML files in a GitHub Action (#1052) Co-authored-by: Luffy --- .github/workflows/integrate.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 5c0fc846c..109b23197 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -97,6 +97,16 @@ jobs: - name: "Run friendsofphp/php-cs-fixer" run: "vendor/bin/php-cs-fixer fix --ansi --config=.php-cs-fixer.php --diff --dry-run --show-progress=dots --verbose" + - name: "Get libxml2-utils" + run: | + set -x + export DEBIAN_FRONTEND=noninteractive + sudo apt-get update -y | true + sudo apt-get install -y libxml2-utils + + - name: "Validate XML files" + run: "for a in $(find . -name '*.xml'); do xmllint --quiet --noout $a; done" + tests: name: "Tests"