ci: Create GitHub action to validate GameDB when it's modified

This commit is contained in:
Tyler Wilding 2021-05-04 20:33:54 -04:00 committed by lightningterror
parent ce0395947f
commit 109ca396b9
1 changed files with 27 additions and 0 deletions

27
.github/workflows/lint-gamedb.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Validate GameDB
on:
push:
branches:
- master
paths:
- "**/GameIndex.yaml"
pull_request:
branches:
- master
paths:
- "**/GameIndex.yaml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Validate GameDB
env:
SCRIPT_DIR: "./.github/workflows/scripts/validation/lint-gamedb"
run: |
pip install -r "${SCRIPT_DIR}/requirements.txt"
python "${SCRIPT_DIR}/lint-gamedb.py"