debian-mirror-gitlab/.gitlab/ci/yaml.gitlab-ci.yml
2021-01-29 00:20:46 +05:30

14 lines
443 B
YAML

# Yamllint of CI-related yaml and changelogs.
# This uses rules from project root `.yamllint`.
lint-yaml:
extends:
- .default-retry
- .yaml-lint:rules
image: pipelinecomponents/yamllint:latest
stage: test
needs: []
variables:
LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
script:
- '[[ ! -d "ee/" ]] || export LINT_PATHS="$LINT_PATHS ee/changelogs"'
- yamllint -f colored $LINT_PATHS