18 lines
760 B
YAML
18 lines
760 B
YAML
# SPDX-License-Identifier: CC0-1.0
|
|
# SPDX-FileCopyrightText: 2024 KDE e.V.
|
|
|
|
include:
|
|
- /gitlab-templates/blocks/workflow.yml
|
|
- /gitlab-templates/blocks/ci-linux-base.yml
|
|
|
|
yaml:
|
|
extends: .suse_tumbleweed_qt6stable_docker
|
|
stage: validate
|
|
interruptible: true
|
|
script:
|
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
|
# download default yamllint configuration if project doesn't have one
|
|
- if [[ ! -e .yamllint && ! -e .yamllint.yml && ! -e .yamllint.yaml ]]; then wget -O .yamllint https://invent.kde.org/sysadmin/ci-utilities/-/raw/master/resources/yamllint.yml; fi
|
|
# ensure that .gitignore and .yamlignore exist; both are referenced in the default yamllint.yml
|
|
- touch .gitignore .yamlignore
|
|
- yamllint -f colored .
|