-
Notifications
You must be signed in to change notification settings - Fork 144
45 lines (41 loc) · 1.26 KB
/
Copy pathtest.yml
File metadata and controls
45 lines (41 loc) · 1.26 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
name: Test
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
scripts:
name: Setup scripts and skill conventions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: chmod +x scripts/*.sh
- run: ./scripts/test-all.sh
spec:
name: Agent Skills spec
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
# Deliberately unpinned. skills-ref is the reference validator, and tracking its
# latest release is how this repo finds out that the spec moved. A failure here
# after an upstream release is information, not a broken build.
# The package is skills-ref, the command it installs is agentskills.
- run: pip install skills-ref
- name: Validate every skill
run: |
fail=0
for d in skills/*/; do
if ! out=$(agentskills validate "$d" 2>&1); then
fail=1
echo "::error file=${d}SKILL.md::$(echo "$out" | tr '\n' ' ')"
echo "FAIL $d"
echo "$out" | sed 's/^/ /'
fi
done
echo "Validated $(ls -d skills/*/ | wc -l) skills."
exit $fail