-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-tools.sh
More file actions
executable file
·108 lines (92 loc) · 2.02 KB
/
Copy pathtest-tools.sh
File metadata and controls
executable file
·108 lines (92 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/bin/bash
set -e
echo "=== Testing GitHub Runner Tools ==="
echo "Architecture: $(uname -m)"
echo ""
# Test base tools (always installed)
echo "Testing base tools..."
git --version
curl --version | head -n1
wget --version | head -n1
echo "Base tools: OK"
echo ""
# Test optional tools
if command -v pwsh &> /dev/null; then
echo "Testing PowerShell..."
pwsh -Version
echo "PowerShell: OK"
echo ""
fi
if command -v az &> /dev/null; then
echo "Testing Azure CLI..."
az version --output tsv | head -n1
echo "Azure CLI: OK"
echo ""
fi
if command -v aws &> /dev/null; then
echo "Testing AWS CLI..."
aws --version
echo "AWS CLI: OK"
echo ""
fi
if command -v kubectl &> /dev/null; then
echo "Testing kubectl..."
kubectl version --client=true --output=yaml | head -n3
echo "kubectl: OK"
echo ""
fi
if command -v kubelogin &> /dev/null; then
echo "Testing kubelogin..."
kubelogin --version
echo "kubelogin: OK"
echo ""
fi
if command -v yq &> /dev/null; then
echo "Testing yq..."
yq --version
echo "yq: OK"
echo ""
fi
if command -v terraform &> /dev/null; then
echo "Testing Terraform..."
terraform version
echo "Terraform: OK"
echo ""
fi
if command -v tofu &> /dev/null; then
echo "Testing OpenTofu..."
tofu version
echo "OpenTofu: OK"
echo ""
fi
if command -v terraspace &> /dev/null; then
echo "Testing Terraspace..."
terraspace --version
echo "Terraspace: OK"
echo ""
fi
if command -v helm &> /dev/null; then
echo "Testing Helm..."
helm version
echo "Helm: OK"
echo ""
fi
if command -v kustomize &> /dev/null; then
echo "Testing Kustomize..."
kustomize version
echo "Kustomize: OK"
echo ""
fi
if command -v jq &> /dev/null; then
echo "Testing jq..."
jq --version
echo "jq: OK"
echo ""
fi
if command -v docker &> /dev/null; then
echo "Testing Docker..."
docker --version
echo "Docker: OK"
echo ""
fi
echo "=== All available tools tested successfully ==="