-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2585421
commit 250c1b8
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# desc: lint sanity check | ||
name: Links (Fail Fast) | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
lint: | ||
name: pre-commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
- name: Restore lychee cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .lycheecache | ||
key: cache-lychee-${{ github.sha }} | ||
restore-keys: cache-lychee- | ||
|
||
- name: Link Checker | ||
uses: lycheeverse/[email protected] | ||
with: | ||
fail: true | ||
args: --base . --cache --max-cache-age 1d . --verbose --no-progress 'docs/**/*.md' 'versioned_docs/**/*.md' | ||
|
||
# - name: Create Issue From File | ||
# if: env.lychee_exit_code != 0 | ||
# uses: peter-evans/create-issue-from-file@v4 | ||
# with: | ||
# title: Link Checker Report | ||
# content-filepath: ./lychee/out.md | ||
# labels: report, automated issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Cache the results of Lychee if ran locally in order to minimise the chance of rate limiting | ||
cache = true | ||
# Ignore all private link (such as localhost) to avoid errors | ||
exclude_all_private = true | ||
# HTTP status code: 429 (Too Many Requests) will also be treated as a valid link if Lychee gets rate limited | ||
accept = [200, 429] | ||
# retry | ||
max_retries = 6 | ||
# Explicitly exclude some URLs | ||
exclude = [ | ||
"^file:", | ||
] |