-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate.sh
More file actions
42 lines (35 loc) Β· 1.11 KB
/
validate.sh
File metadata and controls
42 lines (35 loc) Β· 1.11 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
#!/bin/bash
set -euo pipefail
echo "π Validating Ray Coder Module..."
# Check if Terraform is installed
if ! command -v terraform &> /dev/null; then
echo "β Terraform is required but not installed"
exit 1
fi
echo "β
Terraform found: $(terraform version -json | jq -r '.terraform_version')"
# Validate main module
echo "π§ Validating main module..."
terraform fmt -check=true -diff=true .
terraform init -backend=false
terraform validate
# Validate examples
echo "π§ Validating examples..."
for example_dir in examples/*/; do
if [ -d "$example_dir" ]; then
echo " Validating $(basename "$example_dir")..."
cd "$example_dir"
terraform fmt -check=true -diff=true .
terraform init -backend=false
terraform validate
cd ../..
fi
done
echo "β
All validations passed!"
echo ""
echo "π Module Summary:"
echo " - Ray Dashboard integration"
echo " - Automatic Ray installation with virtual environment"
echo " - Configurable Ray extras and Python packages"
echo " - Health checks and auto-startup"
echo ""
echo "π Ready for Coder registry submission!"