Skip to content

Commit

Permalink
update action versions in link checker workflow (#2532)
Browse files Browse the repository at this point in the history
* update action versions in link checker workflow

* enable debug mode

* update lychee config

* fix accepted HTTP status codes for lychee

* fix accepted status codes

* enable debugging

* update accepted status codes

* remove accepted codes CLI argument

* add debugging step

* add default config

* fix lychee config

* remove testing job

* remove test debugging step

* move lychee options to config file

* move max-concurrency option back to CI

* remove max_concurrency from config
  • Loading branch information
markdboyd authored Aug 12, 2024
1 parent e176a25 commit 5c8289c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

Expand Down Expand Up @@ -55,9 +55,9 @@ jobs:
run: npm run build

- name: Link Checker
uses: lycheeverse/lychee-action@v1.4.1
uses: lycheeverse/lychee-action@v1
with:
args: --github-token ${{secrets.GITHUB_TOKEN}} --max-concurrency 64 --verbose --no-progress './*.md' './_site/**/*.html'
args: --github-token ${{secrets.GITHUB_TOKEN}} --max-concurrency 64 './*.md' './_site/**/*.html' --config lychee.toml
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
10 changes: 5 additions & 5 deletions lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
### Display
###
# Verbose program output
verbose = false
verbose = "info"

# Show progress
progress = false
no_progress = true


###
Expand Down Expand Up @@ -46,7 +46,7 @@ timeout = 20
# Accept 429 responses. They come from GitHub when you are sending too
# many requests and get throttled. They don't indicate a bad link.
# See https://github.com/lycheeverse/lychee/issues/367.
accept = "200,403,429,401"
accept = ["200..=299", "401", "403", "429"]

# Proceed for server connections considered insecure (invalid TLS)
insecure = false
Expand Down Expand Up @@ -88,5 +88,5 @@ exclude_link_local = true
# Exclude loopback IP address range and localhost from checking
exclude_loopback = true

# Exclude all mail addresses from checking
exclude_mail = true
# Check mail addresses
include_mail = false

0 comments on commit 5c8289c

Please sign in to comment.