Skip to content

Commit ab506e5

Browse files
committed
Add CI job for checking links in markdown, asciidoc and source files
1 parent 718c913 commit ab506e5

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/check.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,25 @@ jobs:
118118
run: |
119119
cargo doc --no-deps --all-features
120120
121+
check-links:
122+
# check links contained in markdown, asciidoc and source code files
123+
runs-on: ubuntu-latest
124+
steps:
125+
- uses: actions/checkout@v4
126+
with:
127+
submodules: "recursive"
128+
- name: Restore lychee cache
129+
uses: actions/cache@v4
130+
with:
131+
path: .lycheecache
132+
key: cache-lychee-${{ github.sha }}
133+
restore-keys: cache-lychee-
134+
135+
- name: Run lychee
136+
uses: lycheeverse/lychee-action@v2
137+
with:
138+
args: "--cache --max-cache-age 1d --verbose --no-progress --exclude-path './target/' --exclude-path './up-spec/' -- './**/*.md' './**/*.rs' './**/*.adoc'"
139+
121140
feature-check:
122141
# Comprehensive check on dependencies for all feature flag combinations, excluding development dependencies
123142
needs: check

0 commit comments

Comments
 (0)