This repository has been archived by the owner on May 4, 2024. It is now read-only.
Merge remote-tracking branch 'upstream/master' into magicgate #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 📝 Validate GameDB | |
on: | |
push: | |
branches-ignore: | |
- "l10n_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@v4 | |
- name: Validate Contents | |
run: | | |
npm install -g ajv-cli | |
ajv validate -s ./pcsx2/Docs/gamedb-schema.json --spec=draft2020 -d ./bin/resources/GameIndex.yaml | |
- name: Check Formatting | |
run: | | |
npm install -g prettier | |
prettier --check ./bin/resources/GameIndex.yaml |