Refactored into a script using zod based on feedback

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2026-01-27 19:14:44 -06:00
parent ed3bcf377c
commit 4977f58b9a
6 changed files with 94 additions and 127 deletions
+4 -16
View File
@@ -3,8 +3,8 @@ on:
# NOTE: If you change these you must update ci-noop.yml as well
pull_request:
paths-ignore:
- 'microsite/**'
- 'beps/**'
- "microsite/**"
- "beps/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -121,20 +121,8 @@ jobs:
- name: verify doc links
run: node scripts/verify-links.js
- name: verify plugin directory files
run: |
if find ./microsite/data/plugins -maxdepth 1 -type f ! \( -name "*.yaml" \) | grep -q .; then
find ./microsite/data/plugins -maxdepth 1 -type f ! \( -name "*.yaml" \)
echo "Error: Non-YAML files found"
exit 1
else
echo "Success: All files in are YAML files (based on extension)."
exit 0
fi
- name: verify plugin directory schema
run: yarn ajv validate -s microsite/data/plugin-schema.json -d "microsite/data/plugins/*.yaml" -c ajv-formats
- name: verify plugin directory
run: node scripts/verify-plugin-directory.js
- name: build all packages
run: yarn backstage-cli repo build --all