Add lint stage on pipeline for lang checks

This commit is contained in:
Zedifus 2023-10-17 20:04:37 +01:00
parent d4a576cdd3
commit b42b2a210d

View File

@ -81,3 +81,26 @@ sonarcloud-check:
- .sonar/cache
script:
- sonar-scanner
# Lang file checking
lang-check:
stage: lint
image: alpine:latest
tags:
- docker
rules:
- if: "$CODE_QUALITY_DISABLED"
when: never
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
allow_failure: true
before_script:
- apk add --no-cache jq
script:
- chmod +x .gitlab/scripts/lang_sort.sh
- bash .gitlab/scripts/lang_sort.sh ./app/translations/
after_script:
- cat .gitlab/scripts/lang_sort_log.txt
artifacts:
paths:
- .gitlab/scripts/lang_sort_log.txt
expire_in: 1 week