debian-mirror-gitlab/.gitlab/ci/yaml.gitlab-ci.yml

15 lines
443 B
YAML
Raw Normal View History

2021-01-29 00:20:46 +05:30
# Yamllint of CI-related yaml and changelogs.
2019-09-04 21:01:54 +05:30
# This uses rules from project root `.yamllint`.
2021-01-29 00:20:46 +05:30
lint-yaml:
2019-12-04 20:38:33 +05:30
extends:
- .default-retry
2021-01-29 00:20:46 +05:30
- .yaml-lint:rules
2020-07-28 23:09:34 +05:30
image: pipelinecomponents/yamllint:latest
2020-04-08 14:13:33 +05:30
stage: test
needs: []
2020-03-09 13:42:32 +05:30
variables:
LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
2019-09-04 21:01:54 +05:30
script:
2020-03-09 13:42:32 +05:30
- '[[ ! -d "ee/" ]] || export LINT_PATHS="$LINT_PATHS ee/changelogs"'
2020-07-28 23:09:34 +05:30
- yamllint -f colored $LINT_PATHS