Unverified Commit 4deca48b authored by georg's avatar georg

CI: Introduce job to check pushed branches for broken links

Closes #40
parent 0da5ce4a
......@@ -95,3 +95,20 @@ codespell:
# Also, exclude the vendor dir, which leads to false positives.
- codespell -q 2 -f -I utils/ci/codespell/ignored_words.txt -S vendor
stage: qa
linkcheck:
variables:
APT_INSTALL_PACKAGES: linkchecker
<<: *setup_apt
script:
# Run linkchecker against the pushed (and deployed) branch. Exclude mailto: links, as the ones
# which we commonly use miss a MX record.
- linkchecker --check-extern --ignore-url=mailto https://schleuder.org/review/$CI_COMMIT_REF_SLUG
only:
# This job relies on secret env vars, which are only available in our repo.
- branches@schleuder/schleuder-website
except:
# This job should help with merge requests, so there is no point in running it against the master
# branch.
- master@schleuder/schleuder-website
stage: qa
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment