2021-07-07 01:23:04 +00:00
|
|
|
name: 📝 Validate GameDB
|
2021-05-05 00:33:54 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-06-22 21:33:10 +00:00
|
|
|
branches-ignore:
|
|
|
|
- "l10n_master"
|
2021-05-05 00:33:54 +00:00
|
|
|
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
|
2023-09-11 04:33:40 +00:00
|
|
|
uses: actions/checkout@v4
|
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
|
|
|
run: |
|
2022-11-04 21:23:50 +00:00
|
|
|
npm install -g ajv-cli
|
|
|
|
ajv validate -s ./pcsx2/Docs/gamedb-schema.json --spec=draft2020 -d ./bin/resources/GameIndex.yaml
|
2022-05-23 01:09:50 +00:00
|
|
|
|
|
|
|
- name: Check Formatting
|
|
|
|
run: |
|
|
|
|
npm install -g prettier
|
2022-05-23 01:10:47 +00:00
|
|
|
prettier --check ./bin/resources/GameIndex.yaml
|