ci: Introduce lychee to check links
Use `lychee` to check availability of links in cloud-hypervisor. The urls explictly excluded in config file are manually checked. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
parent
6fa7c84d2e
commit
dc9142f86c
2 changed files with 30 additions and 0 deletions
16
.github/workflows/lychee.yaml
vendored
Normal file
16
.github/workflows/lychee.yaml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
name: Link Check (lychee)
|
||||
on:
|
||||
pull_request
|
||||
|
||||
jobs:
|
||||
link_check:
|
||||
name: Link Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Code checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Link Availability Check
|
||||
uses: lycheeverse/lychee-action@master
|
||||
with:
|
||||
args: --verbose --config .lychee.toml .
|
||||
Loading…
Add table
Add a link
Reference in a new issue