feat: unify local and hosted authorization paths #4845
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 and Test | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| env: | |
| NODE_VERSION: "24.14.0" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build and Test | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: npm | |
| - name: Install workspace dependencies | |
| run: npm ci --legacy-peer-deps | |
| - name: Typecheck releasable packages | |
| run: npm run typecheck | |
| - name: Build inspector package | |
| run: npm run build:inspector | |
| - name: Test production start | |
| shell: bash | |
| run: | | |
| EXIT_CODE=0 | |
| timeout 10s npm run start -w @mcpjam/inspector || EXIT_CODE=$? | |
| if [ "$EXIT_CODE" -eq 124 ]; then | |
| echo "Inspector started successfully (timed out as expected)" | |
| exit 0 | |
| fi | |
| if [ "$EXIT_CODE" -eq 0 ]; then | |
| echo "Inspector started successfully" | |
| exit 0 | |
| fi | |
| echo "Inspector failed to start with exit code $EXIT_CODE" | |
| exit "$EXIT_CODE" |