Loading .gitlab-ci.yml +5 −1 Original line number Diff line number Diff line Loading @@ -30,13 +30,17 @@ check_json_format: stage: check script: - | INVALID_JSON_FILES=false 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."; if $INVALID_JSON_FILES; then echo "Some JSON files are not formatted. Please run jq to fix them." exit 1 fi process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading Loading
.gitlab-ci.yml +5 −1 Original line number Diff line number Diff line Loading @@ -30,13 +30,17 @@ check_json_format: stage: check script: - | INVALID_JSON_FILES=false 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."; if $INVALID_JSON_FILES; then echo "Some JSON files are not formatted. Please run jq to fix them." exit 1 fi process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading