Repository navigation
feat: 语言服务依赖切换为 mcpp-language-server #25
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| unit-and-package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm test | |
| - run: npm run package | |
| - name: Verify VSIX archive | |
| run: unzip -t mcpp-vscode-*.vsix | |
| - name: Verify extension dependency is declared | |
| run: node -e 'const p=require("./package.json"); if (p.extensionDependencies?.[0] !== "sunrisepeak.mcpp-language-server") process.exit(1)' | |
| extension-host-e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - name: Run Extension Host smoke tests | |
| run: xvfb-run -a npm run test:e2e | |
| - name: Check packaged extension is not a second language client | |
| run: | | |
| test ! -e dist/src/languageClient.js | |
| ! rg -n 'vscode-languageclient|mcppls\.serve' dist/src package.json |