Skip to content

Commit 5c4868f

Browse files
author
Nicki Nixon
committed
remove intensive full project validation and replae with failing if source files don't exist
1 parent 53eab0f commit 5c4868f

1 file changed

Lines changed: 10 additions & 30 deletions

File tree

.github/workflows/sdk-generation-validation.yml

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -116,36 +116,18 @@ jobs:
116116
;;
117117
esac
118118
119-
- name: Basic syntax validation
119+
- name: Validate SDK completeness
120120
run: |
121121
cd ./sdk-output/${{ matrix.language }}
122-
case "${{ matrix.language }}" in
123-
"java")
124-
# Check if Java files compile
125-
find . -name "*.java" | head -5 | xargs javac -cp ".:*" 2>/dev/null || echo "Java syntax validation completed (some errors expected in isolated compilation)"
126-
;;
127-
"ruby")
128-
# Check Ruby syntax
129-
find . -name "*.rb" | head -5 | xargs -I {} ruby -c {} || echo "Ruby syntax validation completed"
130-
;;
131-
"python")
132-
# Check Python syntax
133-
find . -name "*.py" | head -5 | xargs python -m py_compile || echo "Python syntax validation completed"
134-
;;
135-
"javascript")
136-
# Check JavaScript syntax
137-
find . -name "*.js" | head -5 | xargs -I {} node --check {} || echo "JavaScript syntax validation completed"
138-
;;
139-
"csharp")
140-
# Basic C# file existence check (compilation requires full dependencies)
141-
find . -name "*.cs" | wc -l
142-
echo "C# files found and validated"
143-
;;
144-
"go")
145-
# Check Go formatting
146-
find . -name "*.go" | head -5 | xargs gofmt -l || echo "Go syntax validation completed"
147-
;;
148-
esac
122+
123+
SOURCE_FILES=$(find . -name "*.java" -o -name "*.rb" -o -name "*.py" -o -name "*.js" -o -name "*.cs" -o -name "*.go" | wc -l)
124+
125+
if [ "$SOURCE_FILES" -eq 0 ]; then
126+
echo "❌ FAILED: No source files generated for ${{ matrix.language }}"
127+
exit 1
128+
fi
129+
130+
echo "✅ Validation passed: $SOURCE_FILES source files generated for ${{ matrix.language }}"
149131
150132
- name: Generate validation report
151133
if: always()
@@ -181,9 +163,7 @@ jobs:
181163
echo "❌ SDK Generation Validation: FAILED"
182164
echo "One or more SDK generations failed. Check individual language job logs for detailed error messages."
183165
echo "## ❌ SDK Generation Validation: FAILED" >> $GITHUB_STEP_SUMMARY
184-
echo "" >> $GITHUB_STEP_SUMMARY
185166
echo "**One or more SDK languages failed to generate.**" >> $GITHUB_STEP_SUMMARY
186-
echo "" >> $GITHUB_STEP_SUMMARY
187167
echo "Check the individual language job logs above for detailed error messages." >> $GITHUB_STEP_SUMMARY
188168
exit 1
189169
fi

0 commit comments

Comments
 (0)