feat: add tutorial skill to carta-investors plugin #59
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Plugins | |
| on: | |
| pull_request: | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check for plugin changes | |
| id: filter | |
| run: | | |
| CHANGED=$(gh pr diff ${{ github.event.pull_request.number }} --name-only | grep -c '^plugins/\|^\.claude-plugin/marketplace\.json\|^\.github/schemas/\|^\.github/scripts/\|^\.github/workflows/validate\.yml' || true) | |
| echo "has_plugin_changes=$([ "$CHANGED" -gt 0 ] && echo true || echo false)" >> "$GITHUB_OUTPUT" | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - uses: actions/setup-python@v5 | |
| if: steps.filter.outputs.has_plugin_changes == 'true' | |
| with: | |
| python-version: '3.12' | |
| - run: pip install yamllint check-jsonschema | |
| if: steps.filter.outputs.has_plugin_changes == 'true' | |
| - name: Validate command frontmatter | |
| if: steps.filter.outputs.has_plugin_changes == 'true' | |
| run: python .github/scripts/validate-frontmatter.py | |
| - name: Validate plugin manifests | |
| if: steps.filter.outputs.has_plugin_changes == 'true' | |
| run: | | |
| manifests=$(find plugins -name "plugin.json" -path "*/.claude-plugin/*") | |
| if [ -z "$manifests" ]; then | |
| echo "ERROR: No plugin manifests found. Check that the script is run from the repo root." | |
| exit 1 | |
| fi | |
| echo "$manifests" | xargs check-jsonschema --schemafile .github/schemas/plugin-manifest.schema.json | |
| - name: Validate marketplace registry | |
| if: steps.filter.outputs.has_plugin_changes == 'true' | |
| run: python .github/scripts/validate-marketplace.py |