Loading .gitlab-ci.yml +16 −3 Original line number Diff line number Diff line Loading @@ -19,11 +19,24 @@ preflight: script: - forgelib-preflight https://$CI_SERVER_HOST $CI_PROJECT_ID $CI_MERGE_REQUEST_IID check_py: image: "forge.etsi.org:5050/li/schemas-definitions/forgelib" #check_py: # image: "forge.etsi.org:5050/li/schemas-definitions/forgelib" # stage: check # script: # - ruff format --check . check_json_format: image: "forge.etsi.org:5050/li/schemas-definitions/json" stage: check script: - ruff format --check . - | find . -type f -name "*.json" -print0 | while IFS= read -r -d '' file; do if ! diff -q <(jq . "$file") "$file" >/dev/null 2>&1; then echo "❌ Unformatted JSON: $file" INVALID_JSON_FILES=true fi done - if [ "$INVALID_JSON_FILES" = true ]; then echo "Some JSON files are not formatted. Please run jq to fix them."; process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading Loading
.gitlab-ci.yml +16 −3 Original line number Diff line number Diff line Loading @@ -19,11 +19,24 @@ preflight: script: - forgelib-preflight https://$CI_SERVER_HOST $CI_PROJECT_ID $CI_MERGE_REQUEST_IID check_py: image: "forge.etsi.org:5050/li/schemas-definitions/forgelib" #check_py: # image: "forge.etsi.org:5050/li/schemas-definitions/forgelib" # stage: check # script: # - ruff format --check . check_json_format: image: "forge.etsi.org:5050/li/schemas-definitions/json" stage: check script: - ruff format --check . - | find . -type f -name "*.json" -print0 | while IFS= read -r -d '' file; do if ! diff -q <(jq . "$file") "$file" >/dev/null 2>&1; then echo "❌ Unformatted JSON: $file" INVALID_JSON_FILES=true fi done - if [ "$INVALID_JSON_FILES" = true ]; then echo "Some JSON files are not formatted. Please run jq to fix them."; process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading