fix: install dependencies in validation workflow (#152)

The validation script requires the 'glob' package from devDependencies.
Also improve error visibility by using tee to show output in logs.

Fixes CI failures where validation script fails with module not found error.
This commit is contained in:
Darren Hinde 2026-01-31 02:11:19 +00:00 committed by GitHub
parent 7472575aaa
commit d8327ffe82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,6 +120,12 @@ jobs:
with:
bun-version: latest
- name: Install dependencies
if: github.event.inputs.skip_validation != 'true'
run: |
# Install root dependencies (glob package needed for validation script)
bun install --frozen-lockfile
- name: Make scripts executable
if: github.event.inputs.skip_validation != 'true'
run: |
@ -201,7 +207,8 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
# Use TypeScript validator (fast and reliable)
if bun run scripts/registry/validate-registry.ts > /tmp/validation-output.txt 2>&1; then
# Run validation and capture output (show in logs AND save to file)
if bun run scripts/registry/validate-registry.ts 2>&1 | tee /tmp/validation-output.txt; then
echo "validation=passed" >> $GITHUB_OUTPUT
echo "✅ All registry paths are valid!" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
@ -215,6 +222,8 @@ jobs:
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat /tmp/validation-output.txt >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Check the logs above for detailed error output**" >> $GITHUB_STEP_SUMMARY
exit 1
fi