validate.yml 799 B

123456789101112131415161718192021222324252627282930
  1. name: Validate extensions
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. jobs:
  7. validate:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v4
  12. - name: Install jq
  13. run: sudo apt-get update && sudo apt-get install -y jq
  14. - name: Install Claude Code (for authoritative plugin validation)
  15. run: npm install -g @anthropic-ai/claude-code
  16. - name: Validate plugin + marketplace manifests
  17. run: |
  18. claude plugin validate .
  19. tmp="$(mktemp -d)"
  20. mkdir -p "$tmp/.claude-plugin"
  21. cp .claude-plugin/plugin.json "$tmp/.claude-plugin/plugin.json"
  22. claude plugin validate "$tmp"
  23. - name: Validate extensions (frontmatter, naming, structure)
  24. run: bash tests/validate.sh