feat(tools): cap served tool-definition size to keep every tool listed #885
Workflow file for this run
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: Build | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [ 18.x, 20.x, 22.x ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install patch-package (if needed) | |
| run: npm i -D patch-package | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate | |
| run: npm run generate | |
| - name: Lint code | |
| run: npm run lint | |
| - name: Check formatting | |
| run: npm run format:check | |
| # tsup strips types without checking them, so build alone cannot catch type errors | |
| # Node 18 skips the @azure/* optional deps (engines >=20), so tsc can't find them | |
| - name: Type check | |
| if: matrix.node-version != '18.x' | |
| run: npm run typecheck | |
| - name: Build TypeScript | |
| run: npm run build | |
| # vitest 4 requires Node >= 20, so tests run on 20+ only | |
| - name: Run tests | |
| if: matrix.node-version != '18.x' | |
| run: npm test | |
| # On Node 18 we still verify the built artifact starts and loads its modules | |
| - name: Smoke test (Node 18 runtime check) | |
| if: matrix.node-version == '18.x' | |
| run: node dist/index.js --list-presets |