summaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/hash.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/hash.yml b/.github/workflows/hash.yml
new file mode 100644
index 00000000000..cec7fca734b
--- /dev/null
+++ b/.github/workflows/hash.yml
@@ -0,0 +1,23 @@
+name: XML validation
+
+on:
+ push:
+ paths:
+ - 'hash/*'
+ pull_request:
+ paths:
+ - 'hash/*'
+
+jobs:
+ validate:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libxml2-utils
+ - name: Validate (HSI)
+ run: for x in hash/*.hsi ; do xmllint --noout "$x" ; done
+ - name: Validate (XML)
+ run: for x in hash/*.xml ; do xmllint --noout --valid "$x" ; done