From 4d93cafcc18ab1552cf013e823b71c3ad5e4e634 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 23 Oct 2023 18:05:32 +0200 Subject: [PATCH] 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 --- .woodpecker/links.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .woodpecker/links.yml diff --git a/.woodpecker/links.yml b/.woodpecker/links.yml new file mode 100644 index 0000000..01acf6b --- /dev/null +++ b/.woodpecker/links.yml @@ -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