--- /dev/null
+---
+
+stages:
+ - linter
+
+include:
+ - local: /gitlab/python-setup-template.yaml
+
+YAML-linter:
+ stage: linter
+ extends: .setup-python-environment
+ image: python:3.11
+ rules:
+ - if: '$CI_COMMIT_TAG'
+ - if: $CI_COMMIT_BRANCH == "master"
+ - if: $CI_COMMIT_BRANCH == "main"
+ - if: $CI_COMMIT_BRANCH == "test"
+ - if: $CI_COMMIT_BRANCH =~ /test-.*/
+ - if: $CI_COMMIT_BRANCH =~ /build.*/
+ - if: $CI_COMMIT_BRANCH == "develop"
+ tags:
+ - docker
+ script:
+ - apt install --yes yamllint
+ - yamllint --config-file .yamllint.yaml --strict --format colored .gitlab-ci.yml gitlab
+
+# vim: et tabstop=2 expandtab shiftwidth=2 softtabstop=2 list