diff --git a/.github/workflows/teste-shell.yml b/.github/workflows/teste-shell.yml index 01a02af..6c6f34f 100644 --- a/.github/workflows/teste-shell.yml +++ b/.github/workflows/teste-shell.yml @@ -19,11 +19,24 @@ jobs: - name: 📦 Verificar ferramentas disponíveis run: | - echo "=== Ferramentas ===" - bash --version - python3 --version - curl --version | head -1 + echo "=== Sistema base ===" + cat /etc/os-release + echo "" + echo "=== Ferramentas disponíveis ===" + which bash && bash --version | head -1 + which curl && curl --version | head -1 + which wget && wget --version 2>&1 | head -1 || echo "wget: não instalado" + which git && git --version + - name: 📦 Instalar python3 se necessário + run: | + # Alpine usa apk, Ubuntu/Debian usa apt + if command -v apk &>/dev/null; then + apk add --no-cache python3 + elif command -v apt-get &>/dev/null; then + apt-get update -qq && apt-get install -y -qq python3 + fi + python3 --version - name: 🌐 Testar conectividade externa run: | echo "=== Ping externo ==="