25 lines
620 B
YAML
25 lines
620 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
xmllint:
|
|
runs-on: fedora
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
container:
|
|
image: git.phyllo.me/devops/fedora-runner-image:latest
|
|
steps:
|
|
- uses: https://git.phyllo.me/devops/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Validate XML definitions
|
|
run: |
|
|
if command -v xmllint >/dev/null; then
|
|
find . -name '*.xml' -exec xmllint --noout {} +
|
|
else
|
|
python3 -c "import glob, xml.etree.ElementTree as ET; [ET.parse(f) for f in glob.glob('**/*.xml', recursive=True)]"
|
|
fi |