Skip to content

Commit 39575cf

Browse files
committed
Add cffconvert job to .gitlab-ci
1 parent 964e8a0 commit 39575cf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

template/.gitlab-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,19 @@ test:
2828
script:
2929
# Run pytest
3030
- python -m pytest -v --durations=0
31+
32+
cffconvert:
33+
stage: test
34+
image:
35+
name: "citationcff/cffconvert:2.0.0"
36+
entrypoint: [""]
37+
rules:
38+
# Run on a Merge Request to the default branch
39+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
40+
# Run on new commits to the default branch
41+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
42+
changes:
43+
- CITATION.cff
44+
script:
45+
# Check whether the citation metadata from CITATION.cff is valid
46+
- cffconvert --validate

0 commit comments

Comments
 (0)