-
Notifications
You must be signed in to change notification settings - Fork 32
224 lines (194 loc) · 7.86 KB
/
Copy pathci.yml
File metadata and controls
224 lines (194 loc) · 7.86 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Verify @inquirer/* dynamic imports resolve (all adapters depend on these, not all exercised under -y)
run: |
node -e "import('@inquirer/prompts').then(()=>console.log('@inquirer/prompts OK'))"
node -e "import('@inquirer/core').then(()=>console.log('@inquirer/core OK'))"
node -e "import('@inquirer/ansi').then(()=>console.log('@inquirer/ansi OK'))"
- run: npm test
- run: npm run verify:skills
- run: npm run packs:check
- run: npm run packs:vendor:sync -- --check
- run: node skills/analyzing-changes/scripts/change_analyzer.js --mode staged || node skills/analyzing-changes/scripts/change_analyzer.js --mode working
- run: node skills/verifying-modules/scripts/module_scanner.js .
- run: node skills/checking-code-quality/scripts/quality_checker.js .
- run: node skills/analyzing-security/scripts/security_scanner.js . --exclude creating-presentations processing-docx analyzing-spreadsheets processing-pdfs site
smoke-claude:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 20
- run: npm ci
- name: Pack npm tarball
shell: bash
run: npm pack
- name: Smoke install/uninstall Claude target
shell: bash
run: |
set -euo pipefail
pkg_tgz="$(ls code-abyss-*.tgz | head -n 1)"
abyss_home="$RUNNER_TEMP/abyss-home"
rm -rf "$abyss_home"
mkdir -p "$abyss_home"
export HOME="$abyss_home"
export USERPROFILE="$abyss_home"
npx --yes --package "./$pkg_tgz" code-abyss --target claude -y
test -f "$abyss_home/.claude/CLAUDE.md"
test -d "$abyss_home/.claude/skills"
test ! -e "$abyss_home/.claude/skills/gstack"
test -d "$abyss_home/.claude/commands"
test -f "$abyss_home/.claude/commands/cultivating-skills.md"
test -f "$abyss_home/.claude/commands/cultivating-personas.md"
test ! -e "$abyss_home/.claude/commands/gen-docs.md"
test ! -e "$abyss_home/.claude/commands/review.md"
test -f "$abyss_home/.claude/settings.json"
test -f "$abyss_home/.claude/.code-abyss-uninstall.js"
# V5.3: character Stop-hook default-on
grep -q '_kernel/character/hooks' "$abyss_home/.claude/settings.json"
grep -q 'check_banned_openers.py' "$abyss_home/.claude/settings.json"
# V5.4: inject plane judgment map
test -f "$abyss_home/.claude/.code-abyss-inject.md"
grep -q 'skills/_kernel/security' "$abyss_home/.claude/.code-abyss-inject.md"
grep -q 'code-abyss-inject-plane' "$abyss_home/.claude/.code-abyss-inject.md"
npx --yes --package "./$pkg_tgz" code-abyss --uninstall claude
test ! -e "$abyss_home/.claude/CLAUDE.md"
test ! -e "$abyss_home/.claude/skills"
test ! -e "$abyss_home/.claude/.code-abyss-backup"
smoke-codex:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 20
- run: npm ci
- name: Pack npm tarball
shell: bash
run: npm pack
- name: Smoke install/uninstall Codex target
shell: bash
run: |
set -euo pipefail
pkg_tgz="$(ls code-abyss-*.tgz | head -n 1)"
abyss_home="$RUNNER_TEMP/abyss-home"
rm -rf "$abyss_home"
mkdir -p "$abyss_home"
export HOME="$abyss_home"
export USERPROFILE="$abyss_home"
npx --yes --package "./$pkg_tgz" code-abyss --target codex -y
test -f "$abyss_home/.codex/instruction.md"
test ! -e "$abyss_home/.codex/AGENTS.md"
test -d "$abyss_home/.codex/skills"
test -d "$abyss_home/.codex/bin/lib"
test ! -e "$abyss_home/.agents/skills/gstack"
test -f "$abyss_home/.codex/config.toml"
test ! -e "$abyss_home/.codex/settings.json"
test -f "$abyss_home/.codex/.code-abyss-uninstall.js"
npx --yes --package "./$pkg_tgz" code-abyss --uninstall codex
test ! -e "$abyss_home/.codex/instruction.md"
test ! -e "$abyss_home/.codex/AGENTS.md"
test ! -e "$abyss_home/.agents/skills"
test ! -e "$abyss_home/.codex/.code-abyss-backup"
smoke-gemini:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 20
- run: npm ci
- name: Pack npm tarball
shell: bash
run: npm pack
- name: Smoke install/uninstall Gemini target
shell: bash
run: |
set -euo pipefail
pkg_tgz="$(ls code-abyss-*.tgz | head -n 1)"
abyss_home="$RUNNER_TEMP/abyss-home"
rm -rf "$abyss_home"
mkdir -p "$abyss_home"
export HOME="$abyss_home"
export USERPROFILE="$abyss_home"
npx --yes --package "./$pkg_tgz" code-abyss --target gemini -y
test -f "$abyss_home/.gemini/GEMINI.md"
test -d "$abyss_home/.gemini/skills"
test -d "$abyss_home/.gemini/commands"
test -f "$abyss_home/.gemini/commands/cultivating-skills.toml"
test -f "$abyss_home/.gemini/commands/cultivating-personas.toml"
test ! -e "$abyss_home/.gemini/commands/gen-docs.toml"
test ! -e "$abyss_home/.gemini/commands/review.toml"
test ! -e "$abyss_home/.gemini/skills/gstack"
test -f "$abyss_home/.gemini/settings.json"
test -f "$abyss_home/.gemini/.code-abyss-uninstall.js"
npx --yes --package "./$pkg_tgz" code-abyss --uninstall gemini
test ! -e "$abyss_home/.gemini/GEMINI.md"
test ! -e "$abyss_home/.gemini/skills"
test ! -e "$abyss_home/.gemini/.code-abyss-backup"
smoke-openclaw:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 20
- run: npm ci
- name: Pack npm tarball
shell: bash
run: npm pack
- name: Smoke install/uninstall OpenClaw target
shell: bash
run: |
set -euo pipefail
pkg_tgz="$(ls code-abyss-*.tgz | head -n 1)"
abyss_home="$RUNNER_TEMP/abyss-home"
rm -rf "$abyss_home"
mkdir -p "$abyss_home"
export HOME="$abyss_home"
export USERPROFILE="$abyss_home"
npx --yes --package "./$pkg_tgz" code-abyss --target openclaw -y
test -d "$abyss_home/.openclaw/skills"
test -f "$abyss_home/.openclaw/workspace/AGENTS.md"
test -f "$abyss_home/.openclaw/workspace/SOUL.md"
test -f "$abyss_home/.openclaw/.code-abyss-uninstall.js"
test ! -e "$abyss_home/.openclaw/commands"
test ! -e "$abyss_home/.openclaw/skills/gstack"
npx --yes --package "./$pkg_tgz" code-abyss --uninstall openclaw
test ! -e "$abyss_home/.openclaw/skills"
test ! -e "$abyss_home/.openclaw/.code-abyss-backup"