Skip to content

Commit

Permalink
Validate external URLs in CI using Lychee
Browse files Browse the repository at this point in the history
  • Loading branch information
biru-codeastromer committed Jan 29, 2025
1 parent 87d9d58 commit 9e519c7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ on:
- completed

jobs:
validate-urls:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install lychee
run: cargo install lychee

- name: Check external links
run: lychee --verbose --exclude-mail --no-progress ./**/*.md

maven-cd:
needs: validate-urls
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
secrets:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check External Links

on:
pull_request:
push:
branches:
- main

jobs:
link-check:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install lychee
run: cargo install lychee

- name: Run lychee to check links
run: lychee --verbose --exclude-mail --no-progress ./**/*.md

0 comments on commit 9e519c7

Please sign in to comment.