Skip to content

Add API token authentication and restructure MCP server #13

Add API token authentication and restructure MCP server

Add API token authentication and restructure MCP server #13

Workflow file for this run

name: Tests
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Create .dev.vars for integration tests
run: |
cat > .dev.vars << 'EOF'
GLOBALPING_CLIENT_ID=test-client-id
GLOBALPING_API_TOKEN=test-token-for-ci-environment
EOF
- name: Run TypeScript check
run: npx tsc --noEmit
- name: Run unit tests
run: npm run test:unit
- name: Run integration tests
run: npm run test:integration
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
coverage/
test-results/
retention-days: 7
if-no-files-found: ignore