From 5afbeae8ca93e3901eedb49b2c192ac8a74c5820 Mon Sep 17 00:00:00 2001 From: Lennart Demes <31403260+struffel@users.noreply.github.com> Date: Thu, 26 Sep 2024 21:31:07 +0200 Subject: [PATCH] New markdown checker and sample json error --- .../{actions.yml => json-schema.yml} | 17 +++----------- .github/workflows/markdown.yml | 23 +++++++++++++++++++ json-schema/endpoint/auto.json | 2 +- 3 files changed, 27 insertions(+), 15 deletions(-) rename .github/workflows/{actions.yml => json-schema.yml} (54%) create mode 100644 .github/workflows/markdown.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/json-schema.yml similarity index 54% rename from .github/workflows/actions.yml rename to .github/workflows/json-schema.yml index aadf208..15c2d7f 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/json-schema.yml @@ -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: diff --git a/.github/workflows/markdown.yml b/.github/workflows/markdown.yml new file mode 100644 index 0000000..9574ab6 --- /dev/null +++ b/.github/workflows/markdown.yml @@ -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 diff --git a/json-schema/endpoint/auto.json b/json-schema/endpoint/auto.json index 96beb1a..fdb5ac1 100644 --- a/json-schema/endpoint/auto.json +++ b/json-schema/endpoint/auto.json @@ -15,7 +15,7 @@ "$ref": "./implementation_list.json" }, { - "$ref": "./initialization.json" + "$ref": "./initializationnnnnnnnnnnnnnnnnnnnnnnnn.json" }, { "$ref": "./unlock.json"