mirror of
https://github.com/doctrine/.github.git
synced 2026-03-23 22:32:09 +01:00
Merge pull request #55 from SenseException/website-schema
Website JSON schema for .doctrine-project.json
This commit is contained in:
18
.github/workflows/website-schema.yml
vendored
Normal file
18
.github/workflows/website-schema.yml
vendored
Normal 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"
|
||||
21
workflow-templates/website-schema.yml
Normal file
21
workflow-templates/website-schema.yml
Normal 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"
|
||||
Reference in New Issue
Block a user