Merge pull request #55 from SenseException/website-schema

Website JSON schema for .doctrine-project.json
This commit is contained in:
Grégoire Paris
2024-12-10 23:07:52 +01:00
committed by GitHub
2 changed files with 39 additions and 0 deletions

18
.github/workflows/website-schema.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: "Website config validation"
on:
workflow_call:
jobs:
schema:
runs-on: "ubuntu-24.04"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Fetch JSON schema"
run: "wget https://www.doctrine-project.org/schema/website-schema.json --output-document website-schema.json"
- name: "Validate JSON schema"
run: "jsonschema website-schema.json --instance .doctrine-project.json"

View File

@@ -0,0 +1,21 @@
name: "Website config validation"
on:
pull_request:
branches:
- "*.x"
paths:
- ".doctrine-project.json"
- ".github/workflows/website-schema.yml"
push:
branches:
- "*.x"
paths:
- ".doctrine-project.json"
- ".github/workflows/website-schema.yml"
jobs:
json-validate:
name: "Validate JSON schema"
uses: "doctrine/.github/.github/workflows/website-schema.yml@use_a_valid_ref_here"