Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swarna1101 committed Dec 18, 2024
1 parent efc967e commit 839cd5d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/check-broken-links.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/lint-check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,40 @@ jobs:
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Lint with ESLint
run: npm run lint

- name: Build website
run: npm run build

- name: Prettier Code
run: npm run format:diff

- 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 \
'**/*.md' '**/*.mdx' '**/*.html'
# Report Failure on Broken Links
- name: Report Failure on Broken Links
if: failure()
run: |
echo "::error:: Broken links detected. Please fix them before merging."

0 comments on commit 839cd5d

Please sign in to comment.