feat(apim-apps): first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# 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')"
|
||||
Reference in New Issue
Block a user