Skip to content

Commit 09e1b18

Browse files
committed
add markdown link checker job to gitlab-ci
1 parent 39575cf commit 09e1b18

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

template/.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,16 @@ cffconvert:
4444
script:
4545
# Check whether the citation metadata from CITATION.cff is valid
4646
- cffconvert --validate
47+
48+
markdown-link-check:
49+
stage: test
50+
image:
51+
name: "lycheeverse/lychee"
52+
entrypoint: [""]
53+
rules:
54+
# Run on a Merge Request to the default branch
55+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
56+
# Run on new commits to the default branch
57+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
58+
script:
59+
- lychee .

0 commit comments

Comments
 (0)