-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 911 Bytes
/
Copy pathplugin-load-check.yml
File metadata and controls
30 lines (28 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: plugin loads in Claude Code
on:
pull_request:
paths:
- .claude-plugin/**
- skills/**
- SKILL.md
- .github/workflows/plugin-load-check.yml
push:
branches: [main]
jobs:
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 skill-ab-eval@skill-ab-eval
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
}