GHActions: Add yamllint pass to gamedb lint

ajv errors are completely useless
This commit is contained in:
TellowKrinkle 2023-09-09 00:38:24 -05:00 committed by TellowKrinkle
parent 485f8a6d3a
commit a28328dd96
2 changed files with 10 additions and 3 deletions

View File

@ -20,12 +20,19 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Packages
run: |
npm install -g ajv-cli prettier
sudo apt-get -y install yamllint
- name: Validate YAML
run: |
yamllint -sd "{extends: relaxed, rules: {line-length: disable}}" ./bin/resources/GameIndex.yaml
- 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