Skip to content

Commit 5758b12

Browse files
authored
Configure link checking (#46)
1 parent 9faa754 commit 5758b12

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
license-check:
1818
name: License Check
1919
uses: ./.github/workflows/license_check.yml
20+
link-check:
21+
name: Link Check
22+
uses: ./.github/workflows/link_check.yml
2023
registry-check:
2124
name: Registry Check
2225
uses: ./.github/workflows/esp_registry.yml

.github/workflows/link_check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Link Check
2+
on:
3+
workflow_call: {}
4+
workflow_dispatch: {}
5+
jobs:
6+
check-links:
7+
name: Link Check
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Restore lychee cache
15+
uses: actions/cache@v4
16+
with:
17+
path: .lycheecache
18+
key: cache-lychee-${{ github.sha }}
19+
restore-keys: cache-lychee-
20+
- name: Run lychee
21+
uses: lycheeverse/lychee-action@v2
22+
with:
23+
args: "--verbose --no-progress --cache --max-cache-age 1d ."
24+
fail: true

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@ coverage_report/
3838
.vscode
3939

4040
# Doxygen
41-
docs/output
41+
docs/output
42+
43+
# Lychee
44+
.lycheecache

licenserc.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ excludes = [
2222
"CMakeLists.txt",
2323
"idf_component.yml",
2424
"license.txt",
25-
"Kconfig"
25+
"Kconfig",
26+
"lychee.toml"
2627
]
2728

2829
[properties]

lychee.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exclude_path = ["docs/customization/*"]
2+
cache = true
3+
max_cache_age = "1d"

0 commit comments

Comments
 (0)