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:
|
deployment:
|
||||||
stage: "deployment"
|
stage: "deployment"
|
||||||
image:
|
image:
|
||||||
name: "cr.simoncor.net/siempie/ansible-deployment:latest"
|
name: "docker.io/pipelinecomponents/ansible-lint:0.79.0"
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
rules:
|
rules:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,21 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
# linting
|
# markdownlint
|
||||||
linting:
|
markdown-lint:
|
||||||
stage: "linting"
|
stage: "linting"
|
||||||
image:
|
image:
|
||||||
name: "cr.simoncor.net/siempie/ansible-deployment:latest"
|
name: "docker.io/davidanson/markdownlint-cli2:v0.18.1"
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
|
|
||||||
# start linting
|
|
||||||
script:
|
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 ."
|
- "yamllint ."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue