Skip to content

Commit df9d5a6

Browse files
committed
ci: add setup install/verify/remove integration test
1 parent b4d54c6 commit df9d5a6

1 file changed

Lines changed: 48 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,51 @@ jobs:
6464
run: python3 scripts/validate-evals.py
6565

6666
- name: Check setup script syntax
67-
run: bash -n setup && echo "OK setup"
67+
run: bash -n setup && echo "OK setup syntax"
68+
69+
- name: Test setup install/verify/remove cycle
70+
run: |
71+
export HOME=$(mktemp -d)
72+
chmod +x setup
73+
74+
# Install
75+
./setup
76+
echo "--- install done ---"
77+
78+
# Verify
79+
./setup verify || true # kiro-cli won't be present in CI
80+
echo "--- verify done ---"
81+
82+
# Check symlinks exist
83+
for s in plan-product plan-eng code-review ship qa retro; do
84+
if [[ ! -L "$HOME/.kiro/skills/$s" ]]; then
85+
echo "FAIL: $s symlink missing after install"
86+
exit 1
87+
fi
88+
done
89+
echo "OK: all symlinks created"
90+
91+
# Re-run install (idempotency)
92+
./setup
93+
echo "OK: re-install safe"
94+
95+
# Remove
96+
./setup remove
97+
for s in plan-product plan-eng code-review ship qa retro; do
98+
if [[ -L "$HOME/.kiro/skills/$s" ]]; then
99+
echo "FAIL: $s symlink still exists after remove"
100+
exit 1
101+
fi
102+
done
103+
echo "OK: all symlinks removed"
104+
105+
# Re-install after remove
106+
./setup
107+
for s in plan-product plan-eng code-review ship qa retro; do
108+
if [[ ! -L "$HOME/.kiro/skills/$s" ]]; then
109+
echo "FAIL: $s symlink missing after re-install"
110+
exit 1
111+
fi
112+
done
113+
echo "OK: re-install after remove works"
114+
echo "--- setup integration test passed ---"

0 commit comments

Comments
 (0)