|
| 1 | +name: Plugin install check |
| 2 | + |
| 3 | +# ROADMAP 1.0 criterion: "Install paths that work and are tested" (#497). |
| 4 | +# Builds the plugin-dist tree, validates every manifest with Claude Code's own |
| 5 | +# validator in --strict mode, then installs both plugins into a throwaway |
| 6 | +# config directory and checks they are listed and enabled. On the weekly run |
| 7 | +# it also installs from the published plugin-dist branch, which is what users |
| 8 | +# actually add. No account or API key is involved: plugin commands are local. |
| 9 | + |
| 10 | +on: |
| 11 | + workflow_dispatch: |
| 12 | + schedule: |
| 13 | + - cron: "0 10 * * 3" # weekly, Wednesday 10:00 UTC |
| 14 | + push: |
| 15 | + branches: [main] |
| 16 | + paths: |
| 17 | + - ".claude-plugin/**" |
| 18 | + - ".cursor-plugin/**" |
| 19 | + - "live-session/**" |
| 20 | + - "skills/**" |
| 21 | + - "claude/**" |
| 22 | + - "exports/**" |
| 23 | + - "scripts/build_plugin_dist.py" |
| 24 | + - ".github/workflows/plugin-install.yml" |
| 25 | + pull_request: |
| 26 | + branches: [main] |
| 27 | + paths: |
| 28 | + - ".claude-plugin/**" |
| 29 | + - ".cursor-plugin/**" |
| 30 | + - "live-session/**" |
| 31 | + - "skills/**" |
| 32 | + - "claude/**" |
| 33 | + - "exports/**" |
| 34 | + - "scripts/build_plugin_dist.py" |
| 35 | + - ".github/workflows/plugin-install.yml" |
| 36 | + |
| 37 | +permissions: |
| 38 | + contents: read |
| 39 | + |
| 40 | +jobs: |
| 41 | + install: |
| 42 | + name: Validate and install the plugins (Claude Code) |
| 43 | + runs-on: ubuntu-latest |
| 44 | + timeout-minutes: 15 |
| 45 | + env: |
| 46 | + CLAUDE_CODE_VERSION: "2.1.296" |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 |
| 49 | + |
| 50 | + - name: Install the Claude Code CLI (pinned) |
| 51 | + run: npm install -g "@anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}" |
| 52 | + |
| 53 | + - name: Build plugin-dist and validate it strictly |
| 54 | + run: | |
| 55 | + set -euo pipefail |
| 56 | + python3 scripts/build_plugin_dist.py --out "$RUNNER_TEMP/dist" |
| 57 | + for target in "$RUNNER_TEMP/dist" "$RUNNER_TEMP/dist/live-session" \ |
| 58 | + "$RUNNER_TEMP/dist/.claude-plugin/marketplace.json"; do |
| 59 | + claude plugin validate --strict "$target" |
| 60 | + done |
| 61 | +
|
| 62 | + - name: Install both plugins from the build into a clean profile |
| 63 | + env: |
| 64 | + CLAUDE_CONFIG_DIR: ${{ runner.temp }}/claude-cfg-local |
| 65 | + run: | |
| 66 | + set -euo pipefail |
| 67 | + claude plugin marketplace add "$RUNNER_TEMP/dist" |
| 68 | + claude plugin install blender-developer-tools@blender-developer-tools |
| 69 | + claude plugin install blender-live-session@blender-developer-tools |
| 70 | + list=$(claude plugin list) |
| 71 | + echo "$list" |
| 72 | + for p in blender-developer-tools@blender-developer-tools blender-live-session@blender-developer-tools; do |
| 73 | + echo "$list" | grep -qF "$p" || { echo "::error::$p is not listed after install"; exit 1; } |
| 74 | + done |
| 75 | +
|
| 76 | + - name: Install from the published plugin-dist branch (weekly) |
| 77 | + if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' |
| 78 | + env: |
| 79 | + CLAUDE_CONFIG_DIR: ${{ runner.temp }}/claude-cfg-published |
| 80 | + run: | |
| 81 | + set -euo pipefail |
| 82 | + claude plugin marketplace add "TMHSDigital/Blender-Developer-Tools@plugin-dist" |
| 83 | + claude plugin install blender-developer-tools@blender-developer-tools |
| 84 | + claude plugin install blender-live-session@blender-developer-tools |
| 85 | + claude plugin list |
0 commit comments