feat: improve linting
This commit is contained in:
parent
19ffc84b01
commit
ba8b91a992
2 changed files with 14 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
|||
deployment:
|
||||
stage: "deployment"
|
||||
image:
|
||||
name: "cr.simoncor.net/siempie/ansible-deployment:latest"
|
||||
name: "docker.io/pipelinecomponents/ansible-lint:0.79.0"
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
rules:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,21 @@
|
|||
---
|
||||
|
||||
# linting
|
||||
linting:
|
||||
# markdownlint
|
||||
markdown-lint:
|
||||
stage: "linting"
|
||||
image:
|
||||
name: "cr.simoncor.net/siempie/ansible-deployment:latest"
|
||||
name: "docker.io/davidanson/markdownlint-cli2:v0.18.1"
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
|
||||
# start linting
|
||||
script:
|
||||
|
||||
# run markdownlint
|
||||
- "markdownlint-cli2 'readme.md' 'docs/**/*.md'"
|
||||
|
||||
# yamllint
|
||||
yamllint:
|
||||
stage: "linting"
|
||||
image: "registry.gitlab.com/pipeline-components/yamllint:0.35.0"
|
||||
script:
|
||||
|
||||
# run yamllint
|
||||
- "yamllint ."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue