-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (84 loc) · 2.91 KB
/
Copy pathci.yml
File metadata and controls
103 lines (84 loc) · 2.91 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate JSON files
run: |
echo "Validating registry.json..."
python3 -m json.tool registry.json > /dev/null
echo "✓ registry.json is valid"
- name: Validate skill frontmatter
run: |
echo "Validating skill files..."
for skill in skills/SKILL.md skills/*/SKILL.md; do
if [ -f "$skill" ]; then
echo " Checking: $skill"
# Check frontmatter exists
if ! head -1 "$skill" | grep -q "^---$"; then
echo " ✗ Missing opening frontmatter"
exit 1
fi
# Check frontmatter closes
if ! head -10 "$skill" | tail -n +2 | grep -q "^---$"; then
echo " ✗ Missing closing frontmatter"
exit 1
fi
# Check name field exists
if ! grep -q "^name:" "$skill"; then
echo " ✗ Missing name field"
exit 1
fi
# Check description field exists
if ! grep -q "^description:" "$skill"; then
echo " ✗ Missing description field"
exit 1
fi
echo " ✓ Valid"
fi
done
echo "All skills validated!"
- name: Validate install.sh syntax
run: |
echo "Validating install.sh..."
bash -n install.sh
echo "✓ install.sh syntax is valid"
- name: Check for common issues
run: |
echo "Checking for common issues..."
# Check for TODO/FIXME that should be resolved
if grep -rn "TODO\|FIXME" skills/ --include="*.md" | grep -v "TODO/FIXME"; then
echo "Warning: Found TODO/FIXME comments in skills"
fi
# Check for broken internal links
for file in skills/*/SKILL.md; do
if grep -oP '\[.*?\]\((?!http).*?\)' "$file" 2>/dev/null; then
echo "Note: Found internal links in $file - verify they work"
fi
done
echo "✓ Checks complete"
test-install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test install.sh --help
run: |
chmod +x install.sh
./install.sh --help
- name: Test install.sh dry run (non-interactive)
run: |
# Just validate it starts without errors
# Don't actually install (would modify system)
timeout 5 ./install.sh --non-interactive --bundle minimal 2>&1 | head -20 || true
echo "Install script executed without syntax errors"