summaryrefslogtreecommitdiff
path: root/.gitlab/ci/yaml.gitlab-ci.yml
blob: a650ee7e4b498881da2f32d789622f620a5d03d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Yamllint of *.yml for .gitlab-ci.yml.
# This uses rules from project root `.yamllint`.
lint-ci-gitlab:
  extends:
    - .default-retry
    - .yaml: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