-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GH Actions and fix small schema errors
- Loading branch information
Showing
4 changed files
with
50 additions
and
7 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,20 @@ | ||
name: JSON Schema Validation | ||
on: [pull_request] | ||
jobs: | ||
validate-json-schema: | ||
name: JSON Schema Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check if json schema was changed | ||
id: check-for-changed-schemas | ||
uses: tj-actions/changed-files@v41 | ||
with: | ||
files: | | ||
json-schema/*/*.json | ||
- name: Validate JSON Schema files | ||
if: steps.check-for-changed-schemas.outputs.any_changed == 'true' | ||
uses: cardinalby/schema-validator-action@v3 | ||
with: | ||
file: "json-schema/*/*.json" | ||
schema: https://json-schema.org/draft/2020-12/schema |
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,23 @@ | ||
name: Markdown Link Validation | ||
on: [pull_request] | ||
jobs: | ||
markdown-link-check: | ||
name: Markdown Link Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check if spec.md was changed | ||
id: check-for-changed-spec | ||
uses: tj-actions/changed-files@v41 | ||
with: | ||
files: | | ||
spec.md | ||
- name: Validate Markdown Links | ||
uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
if: steps.check-for-changed-spec.outputs.any_changed == 'true' | ||
with: | ||
use-quiet-mode: "yes" | ||
use-verbose-mode: "yes" | ||
config-file: "mlc_config.json" | ||
file-path: ./spec.md | ||
max-depth: 3 |
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
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 |
---|---|---|
|
@@ -31,10 +31,10 @@ | |
"string", | ||
"null" | ||
] | ||
}, | ||
"required": [ | ||
"kind", | ||
"version" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"kind", | ||
"version" | ||
] | ||
} |