Skip to content

Commit

Permalink
First pass at linkspector config.
Browse files Browse the repository at this point in the history
  • Loading branch information
grugnog committed May 24, 2024
1 parent a2282b4 commit 1c03a52
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .config/linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dirs:
- .
useGitIgnore: true

Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/link-check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1c03a52

Please sign in to comment.