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

41 lines
1.2 KiB
YAML
Raw Normal View History

2022-07-23 23:45:48 +05:30
# Yamllint of yaml files.
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: []
2022-07-23 23:45:48 +05:30
script:
- yamllint --strict -f colored .
# The jobs below will not use the configuration present in `.yamllint` (it's because of the -d option)
#
# Docs: https://yamllint.readthedocs.io/en/stable/configuration.html#custom-configuration-without-a-config-file
lint-pipeline-yaml:
extends:
- .default-retry
- .lint-pipeline-yaml:rules
image: pipelinecomponents/yamllint:latest
stage: lint
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-07-23 23:45:48 +05:30
- 'yamllint -d "{extends: default, rules: {line-length: disable, document-start: disable}}" $LINT_PATHS'
2022-06-21 17:19:12 +05:30
lint-metrics-yaml:
extends:
- .default-retry
2022-07-23 23:45:48 +05:30
- .lint-metrics-yaml:rules
2022-06-21 17:19:12 +05:30
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'