Atualizar .github/workflows/teste-shell.yml
This commit is contained in:
@@ -19,11 +19,24 @@ jobs:
|
|||||||
|
|
||||||
- name: 📦 Verificar ferramentas disponíveis
|
- name: 📦 Verificar ferramentas disponíveis
|
||||||
run: |
|
run: |
|
||||||
echo "=== Ferramentas ==="
|
echo "=== Sistema base ==="
|
||||||
bash --version
|
cat /etc/os-release
|
||||||
python3 --version
|
echo ""
|
||||||
curl --version | head -1
|
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
|
- name: 🌐 Testar conectividade externa
|
||||||
run: |
|
run: |
|
||||||
echo "=== Ping externo ==="
|
echo "=== Ping externo ==="
|
||||||
|
|||||||
Reference in New Issue
Block a user