1
0
Fork 0
forked from docs/team-docs

Add Vale quality check in CI

This commit is contained in:
darknao 2022-11-29 10:28:37 +01:00
commit fcf34276a5
No known key found for this signature in database

View file

@ -27,3 +27,21 @@ pages:
rules:
- if: $CI_COMMIT_BRANCH == "main" && $CI_PROJECT_ROOT_NAMESPACE == "fedora"
code_quality:
image:
name: jdkato/vale:latest
entrypoint: [""]
tags: [shared]
variables:
VARH_REPO: "redhat-documentation/vale-at-red-hat"
VARH_BRANCH: "main"
before_script:
- apk add --no-cache curl asciidoctor python3
- |
curl -o vale2cc.py \
https://raw.githubusercontent.com/${VARH_REPO}/${VARH_BRANCH}/tools/vale2cc.py
script:
- vale --no-exit --output=JSON . | python3 vale2cc.py > gl-code-quality-report.json
artifacts:
reports:
codequality: gl-code-quality-report.json