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:
10
.github/workflows/integrate.yaml
vendored
10
.github/workflows/integrate.yaml
vendored
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user