diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdece45..ca9860c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,9 @@ jobs: license-check: name: License Check uses: ./.github/workflows/license_check.yml + link-check: + name: Link Check + uses: ./.github/workflows/link_check.yml registry-check: name: Registry Check uses: ./.github/workflows/esp_registry.yml diff --git a/.github/workflows/link_check.yml b/.github/workflows/link_check.yml new file mode 100644 index 0000000..3be7825 --- /dev/null +++ b/.github/workflows/link_check.yml @@ -0,0 +1,24 @@ +name: Link Check +on: + workflow_call: {} + workflow_dispatch: {} +jobs: + check-links: + name: Link Check + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Restore lychee cache + uses: actions/cache@v4 + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- + - name: Run lychee + uses: lycheeverse/lychee-action@v2 + with: + args: "--verbose --no-progress --cache --max-cache-age 1d ." + fail: true \ No newline at end of file diff --git a/.gitignore b/.gitignore index 88d663e..600e97b 100644 --- a/.gitignore +++ b/.gitignore @@ -38,4 +38,7 @@ coverage_report/ .vscode # Doxygen -docs/output \ No newline at end of file +docs/output + +# Lychee +.lycheecache \ No newline at end of file diff --git a/licenserc.toml b/licenserc.toml index 99b0a16..fd67b0c 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -22,7 +22,8 @@ excludes = [ "CMakeLists.txt", "idf_component.yml", "license.txt", - "Kconfig" + "Kconfig", + "lychee.toml" ] [properties] diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 0000000..0e16619 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,3 @@ +exclude_path = ["docs/customization/*"] +cache = true +max_cache_age = "1d" \ No newline at end of file