Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
automate link checking with lychee
Browse files Browse the repository at this point in the history
  • Loading branch information
norswap committed Jan 10, 2022
1 parent c6596da commit a898f87
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,13 @@ jobs:

- name: Lint
run: yarn lint:check

linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Link Checker
uses: lycheeverse/lychee-action@v1.2.0
with:
fail: true
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"markdownlint-cli2": "^0.3.2"
},
"scripts": {
"setup": "yarn install && cargo install lychee",
"lint": "yarn lint:fix && yarn lint:check",
"lint:fix": "markdownlint-cli2-fix \"./specs/**/*.md\" \"#node_modules\"",
"lint:check": "markdownlint-cli2 \"./specs/**/*.md\" \"#node_modules\""
"lint:check": "markdownlint-cli2 \"./specs/**/*.md\" \"#node_modules\"",
"lint:links": "lychee \"./specs/**/*.md\" --base ."
}
}

0 comments on commit a898f87

Please sign in to comment.