Add CI validating season files on push and pull request
validate / validate (push) Failing after 29s

This commit is contained in:
2026-07-31 17:50:41 +01:00
parent 1e77308e6c
commit 370614dce3
+37
View File
@@ -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