ci: Add steps to test for broken links using lychee

Call the new `html-linkcheck` target to fail on broken links.

Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
David Runge 2023-10-23 18:05:32 +02:00
parent 6aeaa0d35d
commit 4d93cafcc1
No known key found for this signature in database
GPG key ID: 90D4B9641E092971

23
.woodpecker/links.yml Normal file
View file

@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
# SPDX-License-Identifier: CC0-1.0
clone:
git:
image: woodpeckerci/plugin-git
settings:
partial: true
lfs: false
when:
branch: draft
event:
- push
- pull_request
steps:
link-check:
image: archlinux:latest
commands:
- pacman -Sy --needed --noconfirm archlinux-keyring
- pacman -Syu --needed --noconfirm lychee make python-myst-parser python-sphinx
- make -C book html-linkcheck