ci: Add Action to check for tabs in JSON files (#21) #24
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 JSONs | |
on: [push, pull_request] | |
jobs: | |
verify-json-validation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate package.json against local schema | |
uses: cardinalby/schema-validator-action@v3 | |
with: | |
file: 'verified-mods.json' | |
schema: '.github/schema.json' | |
verify-mods-versions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Run mod checks | |
run: | | |
python .github/verify_versions.py |