2019-06-05 12:31:35 -04:00
|
|
|
# Yamllint of *.yml for .gitlab-ci.yml.
|
|
|
|
# This uses rules from project root `.yamllint`.
|
|
|
|
lint-ci-gitlab:
|
2019-08-26 16:41:55 -04:00
|
|
|
extends:
|
|
|
|
- .default-tags
|
|
|
|
- .default-retry
|
2019-09-17 10:16:34 -04:00
|
|
|
- .default-only
|
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- "**/*.yml"
|
2019-06-05 12:31:35 -04:00
|
|
|
image: sdesbure/yamllint:latest
|
2019-08-26 16:41:55 -04:00
|
|
|
dependencies: []
|
2020-01-10 13:07:43 -05:00
|
|
|
variables:
|
|
|
|
LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
|
2019-06-05 12:31:35 -04:00
|
|
|
script:
|
2020-01-10 13:07:43 -05:00
|
|
|
- '[[ ! -d "ee/" ]] || export LINT_PATHS="$LINT_PATHS ee/changelogs"'
|
|
|
|
- yamllint $LINT_PATHS
|