yaml.gitlab-ci.yml 437 Bytes
Newer Older
Kamil Trzciński's avatar
Kamil Trzciński committed
1 2 3
# Yamllint of *.yml for .gitlab-ci.yml.
# This uses rules from project root `.yamllint`.
lint-ci-gitlab:
Stan Hu's avatar
Stan Hu committed
4 5
  extends:
    - .default-retry
6
    - .yaml:rules
7
  image: pipelinecomponents/yamllint:latest
8 9
  stage: test
  needs: []
10 11
  variables:
    LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
Kamil Trzciński's avatar
Kamil Trzciński committed
12
  script:
13
    - '[[ ! -d "ee/" ]] || export LINT_PATHS="$LINT_PATHS ee/changelogs"'
14
    - yamllint -f colored $LINT_PATHS