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:
parent
7472575aaa
commit
d8327ffe82
1 changed files with 10 additions and 1 deletions
11
.github/workflows/validate-registry.yml
vendored
11
.github/workflows/validate-registry.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue