Add plugin CI workflow #1
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: Plugin CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| name: Validate Claude plugin | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Check whitespace | |
| run: git diff --check | |
| - name: Run plugin tests | |
| run: npm test | |
| - name: Validate marketplace manifest | |
| run: npx --yes @anthropic-ai/claude-code plugin validate . | |
| - name: Validate plugin manifest | |
| run: npx --yes @anthropic-ai/claude-code plugin validate plugins/records | |
| - name: Run release check | |
| run: npm run release:check |