2021-11-11 11:23:49 +05:30
|
|
|
# Yamllint of CI-related yaml.
|
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
|
2021-12-11 22:18:48 +05:30
|
|
|
stage: lint
|
2020-04-08 14:13:33 +05:30
|
|
|
needs: []
|
2020-03-13 15:44:24 +05:30
|
|
|
variables:
|
2022-05-07 20:08:51 +05:30
|
|
|
LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates data/deprecations data/removals data/whats_new
|
2019-09-04 21:01:54 +05:30
|
|
|
script:
|
2022-03-02 08:16:31 +05:30
|
|
|
- yamllint --strict -f colored $LINT_PATHS
|
2022-06-21 17:19:12 +05:30
|
|
|
|
|
|
|
lint-metrics-yaml:
|
|
|
|
extends:
|
|
|
|
- .default-retry
|
|
|
|
- .yaml-lint:rules
|
|
|
|
image: pipelinecomponents/yamllint:latest
|
|
|
|
stage: lint
|
|
|
|
needs: []
|
|
|
|
variables:
|
|
|
|
LINT_PATHS: config/metrics
|
|
|
|
script:
|
|
|
|
- 'yamllint --strict -f colored -d "{extends: default, rules: {line-length: disable, document-start: disable, indentation: {spaces: 2, indent-sequences: whatever}}}" $LINT_PATHS'
|