Skip to content

Commit

Permalink
New markdown checker and sample json error
Browse files Browse the repository at this point in the history
  • Loading branch information
struffel committed Sep 26, 2024
1 parent 2064887 commit 5afbeae
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
name: Markdown and JSON validation
name: JSON Schema Validation
on: [pull_request]
jobs:
validate-markdown-links:
name: Linkspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
validate-json-schema:
name: Validate JSON schema
name: JSON Schema Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for any changed json schema files
- name: Check if json schema was changed
id: check-for-changed-schemas
uses: tj-actions/changed-files@v41
with:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/markdown.yml
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
2 changes: 1 addition & 1 deletion json-schema/endpoint/auto.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"$ref": "./implementation_list.json"
},
{
"$ref": "./initialization.json"
"$ref": "./initializationnnnnnnnnnnnnnnnnnnnnnnnn.json"
},
{
"$ref": "./unlock.json"
Expand Down

0 comments on commit 5afbeae

Please sign in to comment.