diff --git a/.woodpecker.yml b/.woodpecker.yml index 38859cc..138112d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -44,7 +44,7 @@ steps: - curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh - chmod +x install.sh - echo "🔍 Teste OS Detection im Installer" - - bash -c "source install.sh && detect_os && echo 'OS Detection: OK'" + - bash -c "source install.sh && detect_os && echo 'OS Detection OK'" # Module Tests module_test: @@ -61,7 +61,7 @@ steps: - cd /tmp/gameadm-test - echo "✅ Module Download erfolgreich" - echo "🔍 Teste Module Syntax" - - for module in modules/*.sh; do [[ -f "$module" ]] && bash -n "$module" && echo "✅ Syntax OK: $module"; done + - for module in modules/*.sh; do test -f "$module" && bash -n "$module" && echo "Syntax OK for $module"; done - echo "✅ Alle Module Tests erfolgreich" # Security Check @@ -73,7 +73,7 @@ steps: - curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/bin/gameadm -o gameadm - curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh -o install.sh - echo "🔍 Prüfe auf gefährliche Befehle..." - - "! grep -E '(rm -rf /|mkfs|dd if=|format)' gameadm install.sh || (echo '❌ Gefährliche Befehle gefunden' && exit 1)" + - "! grep -E '(rm -rf /|mkfs|dd if=|format)' gameadm install.sh || (echo 'Gefährliche Befehle gefunden' && exit 1)" - echo "🔍 Prüfe set -euo pipefail..." - grep -q "set -euo pipefail" gameadm && echo "✅ Fehlerbehandlung OK" - grep -q "set -euo pipefail" install.sh && echo "✅ Installer Fehlerbehandlung OK" @@ -90,7 +90,7 @@ steps: - echo "🔧 Teste gameadm Integration" - ./gameadm --help | grep -q "gameadm - Modularer Game Server Administrator" && echo "✅ Help funktioniert" - ./gameadm --version | grep -q "gameadm v" && echo "✅ Version funktioniert" - - ./gameadm list || echo "ℹ️ List command (Module fehlen erwartet)" + - ./gameadm list || echo "List command expected to fail (Module fehlen erwartet)" - echo "✅ Integration Test erfolgreich" # Final Success Report