feat(ci): Fetch SDK list from unsandbox API [test-all]

Use api.unsandbox.com/languages as source of truth for supported
languages instead of hardcoded list. Full hydra incoming!
This commit is contained in:
russell@unturf.com 2026-01-17 09:27:45 -05:00
parent 3bc4489cdc
commit 0841f315a8

View file

@ -9,9 +9,14 @@ CHANGES=$(cat changes.json)
CHANGED_LANGS=$(echo "$CHANGES" | jq -r '.changed_langs[]' 2>/dev/null || echo "")
TEST_ALL=$(echo "$CHANGES" | jq -r '.test_all' 2>/dev/null || echo "false")
# Available SDKs in clients/ directory
# These are the languages that have full SDK implementations
ALL_SDKS="python javascript go ruby php java rust"
# Fetch ALL supported languages from the unsandbox API (the source of truth)
ALL_SDKS=$(curl -s "https://api.unsandbox.com/languages" | jq -r '.languages[]' | tr '\n' ' ')
if [ -z "$ALL_SDKS" ]; then
# Fallback if API is unavailable
ALL_SDKS="python javascript typescript ruby perl php lua bash go rust java kotlin c cpp"
echo "Warning: Could not fetch languages from API, using fallback list"
fi
echo "Available SDKs from API: $ALL_SDKS"
if [ "$TEST_ALL" = "true" ]; then
LANGS="$ALL_SDKS"