Skip to content

Commit 17b311e

Browse files
committed
Add new CI test to validate XML
1 parent df17fc4 commit 17b311e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/pull_request_ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@ on:
88
- release/*
99

1010
jobs:
11+
validate-xml:
12+
name: Use xmlllint to validate the xml file against the schema file
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.x"
22+
23+
- name: Install dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get -y install libxml2-utils
27+
28+
- name: Run xmllint
29+
run: |
30+
xmllint --schema standard_names_v1_0.xsd standard_names.xml --noout
31+
1132
check-unique-standard-names:
1233
name: Check for duplicates in standard names
1334
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)