4444
4545 - name : Install OpenAPI Generator CLI
4646 run : npm install -g @openapitools/openapi-generator-cli
47-
48- # - name: Set up Java (required for OpenAPI Generator)
49- # uses: actions/setup-java@v3
50- # with:
51- # distribution: 'temurin'
52- # java-version: '11'
5347
5448 - name : Create output directory
5549 run : mkdir -p ./sdk-output/${{ matrix.language }}
@@ -72,33 +66,33 @@ jobs:
7266 # Check for key files based on language
7367 case "${{ matrix.language }}" in
7468 "java")
75- find . -name "pom.xml" || (echo "❌ Missing pom.xml" && exit 1)
76- find . -name "*.java" || (echo "❌ No Java files found" && exit 1)
69+ find . -name "pom.xml" | head -1 > /dev/null | | (echo "❌ Missing pom.xml" && exit 1)
70+ find . -name "*.java" | head -1 > /dev/null | | (echo "❌ No Java files found" && exit 1)
7771 echo "✅ Java SDK structure validated"
7872 ;;
7973 "ruby")
80- find . -name "*.gemspec" || (echo "❌ Missing gemspec file" && exit 1)
81- find . -name "*.rb" || (echo "❌ No Ruby files found" && exit 1)
74+ find . -name "*.gemspec" | head -1 > /dev/null | | (echo "❌ Missing gemspec file" && exit 1)
75+ find . -name "*.rb" | head -1 > /dev/null | | (echo "❌ No Ruby files found" && exit 1)
8276 echo "✅ Ruby SDK structure validated"
8377 ;;
8478 "python")
85- find . -name "setup.py" || (echo "❌ Missing setup.py" && exit 1)
86- find . -name "*.py" || (echo "❌ No Python files found" && exit 1)
79+ find . -name "setup.py" | head -1 > /dev/null | | (echo "❌ Missing setup.py" && exit 1)
80+ find . -name "*.py" | head -1 > /dev/null | | (echo "❌ No Python files found" && exit 1)
8781 echo "✅ Python SDK structure validated"
8882 ;;
8983 "node")
90- find . -name "package.json" || (echo "❌ Missing package.json" && exit 1)
91- find . -name "*.ts" -o -name "*.js" || (echo "❌ No TypeScript/JavaScript files found" && exit 1)
84+ find . -name "package.json" | head -1 > /dev/null | | (echo "❌ Missing package.json" && exit 1)
85+ find . -name "*.ts" -o -name "*.js" | head -1 > /dev/null | | (echo "❌ No TypeScript/JavaScript files found" && exit 1)
9286 echo "✅ Node SDK structure validated"
9387 ;;
9488 "csharp")
95- find . -name "*.csproj" || (echo "❌ Missing csproj file" && exit 1)
96- find . -name "*.cs" || (echo "❌ No C# files found" && exit 1)
89+ find . -name "*.csproj" | head -1 > /dev/null | | (echo "❌ Missing csproj file" && exit 1)
90+ find . -name "*.cs" | head -1 > /dev/null | | (echo "❌ No C# files found" && exit 1)
9791 echo "✅ C# SDK structure validated"
9892 ;;
9993 "go")
100- find . -name "go.mod" || (echo "❌ Missing go.mod" && exit 1)
101- find . -name "*.go" || (echo "❌ No Go files found" && exit 1)
94+ find . -name "go.mod" | head -1 > /dev/null | | (echo "❌ Missing go.mod" && exit 1)
95+ find . -name "*.go" | head -1 > /dev/null | | (echo "❌ No Go files found" && exit 1)
10296 echo "✅ Go SDK structure validated"
10397 ;;
10498 esac
0 commit comments