[web-php] master: Validate all of the XML files in a GitHub Action (#1052)
| From: | Jim Winstead via GitHub | Date: | Thu, 22 Aug 2024 03:08:52 +0000 |
| Subject: | [web-php] master: Validate all of the XML files in a GitHub Action (#1052) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31987@lists.php.net to get a copy of this message | ||
Author: Jim Winstead (jimwins)
Committer: GitHub (web-flow)
Pusher: sy-records
Date: 2024-08-22T11:08:05+08:00
Commit: https://github.com/php/web-php/commit/904835abca953b80dcc11545e7efc2ec3f792bc0
Raw diff: https://github.com/php/web-php/commit/904835abca953b80dcc11545e7efc2ec3f792bc0.diff
Validate all of the XML files in a GitHub Action (#1052)
Co-authored-by: Luffy <lufei@php.net>
Changed paths:
M .github/workflows/integrate.yaml
Diff:
diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml
index 5c0fc846c5..109b23197b 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"