Skip to content

Commit

Permalink
ci: add job to check links
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Jan 7, 2025
1 parent 8b310be commit eb86a34
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/link_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Links Checker

on:
pull_request:
branches:
- main
schedule:
- cron: "12 02 4 * *"

jobs:
link_checker:
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.ref }}
restore-keys: cache-lychee-
- name: Run lychee
uses: lycheeverse/lychee-action@v2
with:
args: --base . --cache --no-progress --require-https './**/*.md' './**/*.html' './**/*.rs'
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@
//! [reqwest_client]:https://docs.rs/reqwest/latest/reqwest/struct.Client.html
//! [examples_folder]: https://github.com/c-git/reqwest-cross/tree/main/examples
// TODO 4: Add link checking to this crate

mod data_state;
mod platform;
mod traits;
Expand Down

0 comments on commit eb86a34

Please sign in to comment.