forked from docs/team-docs
Add Vale quality check in CI
This commit is contained in:
parent
99d0f17f6b
commit
fcf34276a5
1 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue