From 1c03a521d9b93ac8722e984fcfa2c07c15c95254 Mon Sep 17 00:00:00 2001 From: Owen Barton Date: Fri, 24 May 2024 15:49:18 -0700 Subject: [PATCH] First pass at linkspector config. --- .config/linkspector.yml | 4 ++++ .../{check-all.yml => link-check-all.yml} | 18 ++++++++++++++++++ .github/workflows/link-check-pr.yml | 14 +++++++++----- 3 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 .config/linkspector.yml rename .github/workflows/{check-all.yml => link-check-all.yml} (65%) diff --git a/.config/linkspector.yml b/.config/linkspector.yml new file mode 100644 index 0000000000..b7d21b6e3c --- /dev/null +++ b/.config/linkspector.yml @@ -0,0 +1,4 @@ +dirs: + - . +useGitIgnore: true + diff --git a/.github/workflows/check-all.yml b/.github/workflows/link-check-all.yml similarity index 65% rename from .github/workflows/check-all.yml rename to .github/workflows/link-check-all.yml index c62abbe8c3..e93575332f 100644 --- a/.github/workflows/check-all.yml +++ b/.github/workflows/link-check-all.yml @@ -18,6 +18,24 @@ jobs: config-file: ".config/markdown.links.config.json" use-quiet-mode: "yes" use-verbose-mode: "yes" + +on: + pull_request: + +jobs: + check-links: + name: runner / linkspector + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run linkspector on all links + uses: umbrelladocs/action-linkspector@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-check + fail_on_error: true + config_file: .config/linkspector.yml + filter_mode: nofilter - name: Run remark-lint on all files uses: ./.config/remark/ with: diff --git a/.github/workflows/link-check-pr.yml b/.github/workflows/link-check-pr.yml index 6f3e489e67..c496ead10e 100644 --- a/.github/workflows/link-check-pr.yml +++ b/.github/workflows/link-check-pr.yml @@ -4,12 +4,16 @@ on: pull_request: jobs: - markdown-link-check: + check-links: + name: runner / linkspector runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + - name: Run linkspector + uses: umbrelladocs/action-linkspector@v1 with: - config-file: ".config/markdown.links.config.json" - use-quiet-mode: "yes" - use-verbose-mode: "yes" + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review + fail_on_error: true + config_file: .config/linkspector.yml + filter_mode: added