inspector/.github/workflows/main.yml
cliffhall 8ac539ac62 Install root dependencies in CI so core/*.ts can resolve SDK
clients/web/tsconfig.app.json's include pulls in ../../core/**/*.ts.
TypeScript module resolution from those files walks up from core/mcp/
looking for node_modules, which lands at the repo root. CI only ran
npm install inside clients/web/, so root node_modules was empty and
core/mcp/types.ts / elicitationCreateMessage.ts / taskNotificationSchemas.ts
failed to resolve @modelcontextprotocol/sdk/types.js and zod/v4
(locally the build worked because root had been manually installed).

Add an explicit root npm install step before the clients/web install.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 12:43:27 -04:00

39 lines
880 B
YAML

name: Run install, format, lint, build, and test on every push or pull request
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20.x'
cache: 'npm'
- name: Install root dependencies
run: npm install
- name: Install web client dependencies
working-directory: ./clients/web
run: npm install
- name: Check formatting
working-directory: ./clients/web
run: npm run format:check
- name: Run linter
working-directory: ./clients/web
run: npm run lint
- name: Run Build
working-directory: ./clients/web
run: npm run build
# - name: Run tests
# run: npm run test