Skip to content
Snippets Groups Projects
Commit 38d89940 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add linter to ci

parent a098ab70
No related branches found
No related tags found
2 merge requests!122Front matter linter,!93Resolve "front-matter linter"
Pipeline #116519 failed
This commit is part of merge request !93. Comments created here will be created in the context of that merge request.
......@@ -26,6 +26,7 @@ cache:
stages:
- delete-release
- build-df-cli
- lint
- get-data
- deploy-meilisearch
- update-meilisearch-indexes
......@@ -163,6 +164,21 @@ delete-meili-helm-release:prod:
- helm delete -n ${NAMESPACE} ${CI_PROJECT_NAME}-${CI_ENVIRONMENT_NAME}-meilisearch
# lint
lint:
image: python:3.11-bullseye
stage: lint
before_script:
- pip install df-wiki-cli --index-url https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.pasteur.fr/api/v4/projects/5222/packages/pypi/simple
- cd content/3.defense-systems
script:
- >
find . -name '*.md' -print0 | xargs -0 -I {}
df-wiki-cli wiki lint --file {}
rules:
- if: $CI_COMMIT_BRANCH != "main"
# Update Meili search indexes
.update-meilisearch-index:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment