Merge pull request #106 from commie70/main #7
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 loads in Claude Code | |
| # Installs the plugin from this checkout into a scratch CLAUDE_CONFIG_DIR and | |
| # fails if it does not reach "enabled". Catches load-layer breakage that | |
| # schema validation misses, e.g. the duplicate hooks declaration in #61. | |
| on: | |
| pull_request: | |
| paths: | |
| - .claude-plugin/** | |
| - hooks/** | |
| - skills/** | |
| - tests/test_always_on_hooks.py | |
| - .github/workflows/plugin-load-check.yml | |
| push: | |
| branches: [main] | |
| jobs: | |
| hook-parity: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Test native hook implementations | |
| run: python -m unittest tests.test_always_on_hooks -v | |
| load: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Claude Code | |
| run: npm install -g @anthropic-ai/claude-code | |
| - name: Install the plugin from this checkout into a scratch config | |
| run: | | |
| export CLAUDE_CONFIG_DIR="$RUNNER_TEMP/claude-scratch" | |
| mkdir -p "$CLAUDE_CONFIG_DIR" | |
| claude plugin marketplace add "$GITHUB_WORKSPACE" | |
| claude plugin install i-have-adhd@i-have-adhd | |
| claude plugin list | tee plugin-list.txt | |
| grep -q "✔ enabled" plugin-list.txt || { | |
| echo "::error::plugin failed to load; see claude plugin list output above" | |
| exit 1 | |
| } |