diff options
author | 2020-10-16 15:13:51 +0200 | |
---|---|---|
committer | 2020-10-17 00:13:51 +1100 | |
commit | 8b595339529ff8776c4f1e28557e2f6c392dec39 (patch) | |
tree | aef6f95d9658a133b3e6a151221bff72985ebf50 /.github/workflows/hash.yml | |
parent | b95bc8727561b74339b9fa45b0b3f344cc35c32c (diff) |
Create GitHub Action to validate hash XML files (#7323)
* Create GitHub Action to validate hash XML files
This GitHub Action will run on any commit or pull request that changes a file in the "hash" directory. It will do a simple xmllint run for the HSI files and will check the softwarelist XML files against their DTD.
* Delete c64_flop_clcracked.xml
No content, can be recreated if needed.
* Remove references to removed softwarelist c64_flop_clcracked.xml
Diffstat (limited to '.github/workflows/hash.yml')
-rw-r--r-- | .github/workflows/hash.yml | 23 |
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 |