Expose document chunk asset URL controls #296
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: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| matrix: | |
| node-version: [20, 22] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.0.6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| # Dependabot dev-tooling bumps should validate cleanly without forcing | |
| # a package release changeset. | |
| - name: Require changeset for main-bound pull requests | |
| if: >- | |
| github.event_name == 'pull_request' && | |
| github.base_ref == 'main' && | |
| !startsWith(github.head_ref, 'changeset-release/') && | |
| matrix.node-version == 22 && | |
| !( | |
| startsWith(github.head_ref, 'dependabot/') && | |
| startsWith(github.event.pull_request.title, 'chore(deps-dev):') | |
| ) | |
| run: pnpm run release:check-changeset -- origin/${{ github.base_ref }} | |
| - name: Check formatting | |
| run: pnpm run format:check:all | |
| - name: Type check | |
| run: pnpm run typecheck:all | |
| - name: Lint | |
| run: pnpm run lint:all | |
| - name: Run tests | |
| run: pnpm run test:all | |
| - name: Build | |
| run: pnpm run build:all | |
| - name: Test package installation | |
| if: matrix.node-version == 22 | |
| run: | | |
| mkdir -p /tmp/knowhere-node-sdk-packages | |
| pnpm pack --pack-destination /tmp/knowhere-node-sdk-packages | |
| (cd packages/mcp && pnpm pack --pack-destination /tmp/knowhere-node-sdk-packages) | |
| npm install -g /tmp/knowhere-node-sdk-packages/*.tgz |