-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (39 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
52 lines (39 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
46
47
48
49
50
51
52
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # 需要完整 git 历史以运行 diff 分析
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: kimi-code-swarm/package-lock.json
- name: Install dependencies
run: cd kimi-code-swarm && npm ci
- name: Install ast dependencies
run: cd ast && npm ci
- name: Type check
run: cd kimi-code-swarm && npm run typecheck
- name: Lint
run: cd kimi-code-swarm && npm run lint
- name: AST analyze
run: cd kimi-code-swarm && npm run analyze
- name: Run tests
run: cd kimi-code-swarm && npm run test
- name: Check docs sync
run: cd kimi-code-swarm && npx tsx ../ci/scripts/check-docs-sync.ts --base origin/main
- name: Check test sync
if: github.event_name == 'pull_request'
run: cd kimi-code-swarm && npx tsx ../ci/scripts/check-test-sync.ts --base origin/main
- name: Build
run: cd kimi-code-swarm && npm run build