Skip to content

Commit 9e519c7

Browse files
Validate external URLs in CI using Lychee
1 parent 87d9d58 commit 9e519c7

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/cd.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,20 @@ on:
88
- completed
99

1010
jobs:
11+
validate-urls:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install lychee
18+
run: cargo install lychee
19+
20+
- name: Check external links
21+
run: lychee --verbose --exclude-mail --no-progress ./**/*.md
22+
1123
maven-cd:
24+
needs: validate-urls
1225
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
1326
secrets:
1427
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

.github/workflows/link-check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check External Links
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
link-check:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install lychee
18+
run: cargo install lychee
19+
20+
- name: Run lychee to check links
21+
run: lychee --verbose --exclude-mail --no-progress ./**/*.md

0 commit comments

Comments
 (0)