-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (45 loc) · 1.34 KB
/
ci.yml
File metadata and controls
52 lines (45 loc) · 1.34 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Validate plugin.json
run: |
if [ ! -f ".claude-plugin/plugin.json" ]; then
echo "ERROR: .claude-plugin/plugin.json not found"
exit 1
fi
echo "plugin.json found"
cat .claude-plugin/plugin.json | python3 -m json.tool > /dev/null
echo "plugin.json is valid JSON"
- name: Validate plugin structure
run: |
echo "Checking required directories..."
for dir in skills commands agents; do
if [ -d "$dir" ]; then
echo " Found: $dir/"
fi
done
echo "Checking skill structure..."
if [ -f "skills/human-voice/SKILL.md" ]; then
echo " Found: skills/human-voice/SKILL.md"
else
echo "ERROR: skills/human-voice/SKILL.md not found"
exit 1
fi
- name: Validate JavaScript syntax
uses: actions/setup-node@v6
with:
node-version: 20
- name: Check script syntax
run: |
for script in skills/human-voice/scripts/*.js; do
echo "Checking: $script"
node --check "$script"
done