1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Validate all of the XML files in a GitHub Action (#1052)

Co-authored-by: Luffy <lufei@php.net>
This commit is contained in:
Jim Winstead
2024-08-21 20:08:05 -07:00
committed by GitHub
parent 2bbf3dd603
commit 904835abca

View File

@@ -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"