Add CI validating season files on push and pull request
validate / validate (push) Failing after 29s
validate / validate (push) Failing after 29s
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: validate
|
||||
|
||||
# Catalog edits arrive as pull requests from mods, so validation has to run
|
||||
# before merge — a malformed season file would otherwise reach the bot's next
|
||||
# catalog reload.
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "seasons/**"
|
||||
- "schema/**"
|
||||
- "scripts/validate.py"
|
||||
- ".gitea/workflows/validate.yml"
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "seasons/**"
|
||||
- "schema/**"
|
||||
- "scripts/validate.py"
|
||||
- ".gitea/workflows/validate.yml"
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install jsonschema
|
||||
run: pip install --quiet jsonschema
|
||||
|
||||
- name: Validate season files
|
||||
run: python scripts/validate.py
|
||||
Reference in New Issue
Block a user