-
Notifications
You must be signed in to change notification settings - Fork 25
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
839cd5d
commit a4d7795
Showing
1 changed file
with
12 additions
and
14 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 |
---|---|---|
|
@@ -33,21 +33,19 @@ jobs: | |
- name: Check types | ||
run: npm run typecheck | ||
|
||
# Install Lychee for link checking | ||
- name: Install Lychee (Link Checker) | ||
run: | | ||
wget -q https://github.com/lycheeverse/lychee/releases/latest/download/lychee-linux-x86_64.tar.gz | ||
tar -xzf lychee-linux-x86_64.tar.gz | ||
sudo mv lychee /usr/local/bin/ | ||
# Run Link Checker | ||
- name: Run Link Checker | ||
run: | | ||
lychee \ | ||
--config .github/config/lychee.toml \ | ||
--accept=200,403 \ | ||
--no-progress \ | ||
# Run Link Checker using Lychee Action | ||
- name: Check for Broken Links | ||
uses: lycheeverse/[email protected] | ||
with: | ||
# Specify files to scan for links | ||
args: > | ||
--accept 200,403 | ||
--no-progress | ||
'**/*.md' '**/*.mdx' '**/*.html' | ||
# Path to Lychee configuration file | ||
config-file: .github/config/lychee.toml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Report Failure on Broken Links | ||
- name: Report Failure on Broken Links | ||
|