mirror of
https://github.com/libretro/pcsx2.git
synced 2024-11-27 19:30:36 +00:00
35 lines
761 B
YAML
35 lines
761 B
YAML
name: 📝 Validate GameDB
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**/GameIndex.yaml'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**/GameIndex.yaml'
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint and Validate GameDB
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Validate Contents
|
|
env:
|
|
GAMEDB_PATH: ./bin/resources/GameIndex.yaml
|
|
SCRIPT_DIR: .github/workflows/scripts/lint/gamedb
|
|
run: |
|
|
pip install -r "${SCRIPT_DIR}/requirements.txt"
|
|
python "${SCRIPT_DIR}/lint.py"
|
|
|
|
- name: Check Formatting
|
|
run: |
|
|
npm install -g prettier
|
|
prettier --check ./bin/resources/GameIndex.yaml
|