Files
2026-06-29 14:22:37 +02:00

25 lines
663 B
YAML

# Runs on: main, fix/*, feat/*
# Validates config.json and apps.yaml syntax before any deployment.
lint:config-json:
extends: .uv-base
stage: lint
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^(fix|feat)\/.+/
script:
- >
uv run python -c
"import json, sys; json.load(open('${CONFIG}')); print('${CONFIG}: OK')"
lint:apps-yaml:
extends: .uv-base
stage: lint
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^(fix|feat)\/.+/
script:
- >
uv run python -c
"import yaml; yaml.safe_load(open('${MANIFEST}')); print('${MANIFEST}: OK')"