mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
8b59533952
* 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
23 lines
505 B
YAML
23 lines
505 B
YAML
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
|