-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from SenseException/website-schema
Website JSON schema for .doctrine-project.json
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |