1
0
Files
uapf-validation-ready/tools/validate.sh
ProcessGit Templates 279af5a7fd Initial template import
2026-09-30 22:33:38 +00:00

26 lines
576 B
Bash
Executable File

#!/usr/bin/env sh
set -eu
log() {
printf '%s\n' "$1"
}
log "Checking required files"
REQUIRED_PATHS="enterprise/enterprise.index.json packages"
for path in $REQUIRED_PATHS; do
if [ ! -e "$path" ]; then
log "Missing required path: $path"
exit 1
fi
done
log "Validating XML assets when xmllint is available"
if command -v xmllint >/dev/null 2>&1; then
find . -type f \( -name '*.bpmn' -o -name '*.dmn' -o -name '*.cmmn' \) -print0 |
xargs -0 -r -n1 xmllint --noout
else
log "xmllint not installed; skipping XML validation"
fi
log "Validation complete"