Merge pull request #5 from KirtiJha/claude/neural-embeddings-AAlOm #10
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: | |
| build: | |
| name: Lint, typecheck, test & build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Test | |
| run: npm test | |
| - name: Build | |
| run: npm run build | |
| - name: Verify native deps are packaged | |
| # Guard against the bundled-extension footgun: if node_modules is | |
| # ignored or a native dep is mis-classified as a devDependency, the | |
| # vector store binary silently falls out of the .vsix. Fail loudly here. | |
| run: | | |
| npx vsce ls > /tmp/pkg-files.txt | |
| echo "Files that would be packaged: $(wc -l < /tmp/pkg-files.txt)" | |
| grep -q "lancedb.*\.node" /tmp/pkg-files.txt \ | |
| || { echo "::error::@lancedb native binary missing from package — check .vscodeignore / dependencies"; exit 1; } | |
| echo "OK: native vector store binary is included in the package" |