refactor(cli): 重构命令行参数解析并优化启动流程 #141
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: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| name: Node ${{ matrix.node-version }} / ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macos-latest | |
| node-version: | |
| - "22" | |
| - "24" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: TypeCheck + Lint + Format Check | |
| run: npm run check | |
| - name: Build Core | |
| run: npm run build --workspace=@vegamo/deepcode-core | |
| - name: Bundle CLI | |
| run: npm run bundle | |
| - name: Build VSCode Extension | |
| run: npm run build:vscode | |
| - name: Test | |
| run: npm test |