Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects

Resolve "ci: add more lint"

Merged Christophe Chaudier requested to merge 33-ci-add-more-lint into main
+ 8
18
@@ -35,38 +35,28 @@ ansible-syntax-check:
# For Ansible Galaxy Scoring
# https://galaxy.ansible.com/docs/contributing/content_scoring.html
yamllint:
image: cytopia/yamllint:1.26
yaml-lint:
image:
name: cytopia/yamllint:1.26
entrypoint: ["/bin/ash", "-c"]
stage: lint
before_script:
- yamllint --version
script:
- yamllint -c .yamllint.yml . | tee yamllint.log
- ls **/*.yml
- yamllint -c .yamllint.yml -f colored .
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
changes:
- "**/*.yml"
artifacts:
name: yamllint
paths:
- ./yamllint.log
expire_in: 7 days
when: on_failure
galaxy-lint:
extends: ansible-lint
before_script:
- ansible-lint --version
script:
- ansible-lint **/*.yml | tee ansible-lint.log
- ansible-lint **/*.yml
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
changes:
- "**/*.yml"
artifacts:
name: ansible-lint
paths:
- ./ansible-lint.log
expire_in: 7 days
when: on_failure
Loading