refactor(agent-engine): add timeout to runInstructionSilent #104
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: 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 |