summaryrefslogtreecommitdiff
path: root/.gitlab/ci/yaml.gitlab-ci.yml
blob: 4fcf940974be0e05d5e5cda97a7344ea38c93b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Yamllint of *.yml for .gitlab-ci.yml.
# This uses rules from project root `.yamllint`.
lint-ci-gitlab:
  extends:
    - .default-tags
    - .default-retry
    - .default-only
  only:
    changes:
      - "**/*.yml"
  image: sdesbure/yamllint:latest
  dependencies: []
  variables:
    LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
  script:
    - '[[ ! -d "ee/" ]] || export LINT_PATHS="$LINT_PATHS ee/changelogs"'
    - yamllint $LINT_PATHS