Skip to content
Snippets Groups Projects
Commit 463dfb50 authored by Matthias Bernt's avatar Matthias Bernt
Browse files

Update file .gitlab-ci.yml

parent 4c027405
No related branches found
No related tags found
1 merge request!5Add spellcking
Pipeline #472974 failed
stages:
- spellcheck
- typos
spellcheck:
stage: spellcheck
......@@ -27,4 +26,21 @@ typos:
- typos --format brief --exclude .git --files
rules:
- if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event"'
allow_failure: false
aspell:
stage: spellcheck
image: alpine:latest
before_script:
# Install aspell and required language dictionary
- apk add --no-cache aspell aspell-en
script:
# Find and spellcheck all markdown files
- |
find . -name "*.md" -print0 | while IFS= read -r -d '' file; do
echo "Checking $file"
aspell --lang=en --mode=markdown --add-extra-dicts=./custom.dict list < "$file" | sort -u
done
rules:
- if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event"'
allow_failure: false
\ No newline at end of file
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