Add install-kit to repo drift checker

This commit is contained in:
IgorRachkov
2026-04-30 20:59:40 +03:00
parent 8278d51840
commit aca42caf0a
3 changed files with 146 additions and 3 deletions
+14 -3
View File
@@ -4,17 +4,17 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
echo "[1/3] Bash syntax check"
echo "[1/4] Bash syntax check"
find aw-server proxmox -type f -name "*.sh" -print0 | xargs -0 -r -n1 bash -n
echo "[2/3] Shellcheck (if available)"
echo "[2/4] Shellcheck (if available)"
if command -v shellcheck >/dev/null 2>&1; then
find aw-server proxmox -type f -name "*.sh" -print0 | xargs -0 -r shellcheck
else
echo "shellcheck not found, skipping."
fi
echo "[3/3] PowerShell parse check (if pwsh available)"
echo "[3/4] PowerShell parse check (if pwsh available)"
if command -v pwsh >/dev/null 2>&1; then
pwsh -NoLogo -NoProfile -Command '
$ErrorActionPreference = "Stop"
@@ -28,4 +28,15 @@ else
echo "pwsh not found, skipping."
fi
echo "[4/4] Ansible syntax check (if ansible-playbook available)"
if command -v ansible-playbook >/dev/null 2>&1; then
for playbook in ansible/*.yml; do
ansible-playbook --syntax-check "$playbook" -i ansible/inventory.example.ini >/dev/null
done
else
echo "ansible-playbook not found, skipping."
fi
echo "quality-gate: OK"