2021-07-07 01:23:04 +00:00
|
|
|
name: 📝 Validate GameDB
|
2021-05-05 00:33:54 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
2021-05-07 13:45:52 +00:00
|
|
|
- '**/GameIndex.yaml'
|
2021-05-05 00:33:54 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
2021-05-07 13:45:52 +00:00
|
|
|
- '**/GameIndex.yaml'
|
2021-05-05 00:33:54 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2022-05-23 01:10:47 +00:00
|
|
|
name: Lint and Validate GameDB
|
2021-05-05 00:33:54 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
2022-03-07 04:02:40 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-05-05 00:33:54 +00:00
|
|
|
|
2022-05-23 01:09:50 +00:00
|
|
|
- name: Validate Contents
|
2021-05-05 00:33:54 +00:00
|
|
|
env:
|
2022-05-23 01:09:50 +00:00
|
|
|
GAMEDB_PATH: ./bin/resources/GameIndex.yaml
|
|
|
|
SCRIPT_DIR: .github/workflows/scripts/lint/gamedb
|
2021-05-05 00:33:54 +00:00
|
|
|
run: |
|
|
|
|
pip install -r "${SCRIPT_DIR}/requirements.txt"
|
2022-05-23 01:09:50 +00:00
|
|
|
python "${SCRIPT_DIR}/lint.py"
|
|
|
|
|
|
|
|
- name: Check Formatting
|
|
|
|
run: |
|
|
|
|
npm install -g prettier
|
2022-05-23 01:10:47 +00:00
|
|
|
prettier --check ./bin/resources/GameIndex.yaml
|