Skip to content

fix(server): guard against non-string content text in tool results #76

fix(server): guard against non-string content text in tool results

fix(server): guard against non-string content text in tool results #76

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
- next
- next-major
- beta
- alpha
jobs:
test:
name: Test on Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Configure npm for GitHub Packages
run: |
echo "@wyre-technology:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Lint destructive tool warnings
run: node scripts/lint-destructive-warnings.mjs src
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Test Docker build
run: docker build --build-arg NODE_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} -t huntress-mcp:test .
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20.x'
cache: 'npm'
- name: Configure npm for GitHub Packages
run: |
echo "@wyre-technology:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Lint destructive tool warnings
run: node scripts/lint-destructive-warnings.mjs src
- name: Build
run: npm run build
- name: Run tests with coverage
run: npm run test:coverage