Skip to main content
Glama
integration-tests.yml2.79 kB
name: Integration Tests on: push: branches: [main, develop] pull_request: branches: [main, develop] schedule: - cron: '0 2 * * *' # Daily at 2 AM UTC workflow_dispatch: inputs: run_real_tests: description: 'Run tests against real Float API' type: boolean default: false jobs: integration-tests-mock: name: Integration Tests (mock) runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '22' cache: 'npm' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Setup test environment run: | cp .env.example .env echo "TEST_MOCK_MODE=true" >> .env echo "TEST_REAL_API=false" >> .env echo "LOG_LEVEL=error" >> .env - name: Run integration tests run: npm run test:integration:mock - name: Upload test results uses: actions/upload-artifact@v4 if: always() with: name: test-results-mock path: | coverage/ test-results/ retention-days: 7 integration-tests-real: name: Integration Tests (real) runs-on: ubuntu-latest # Only run real API tests when explicitly requested if: ${{ github.event_name == 'schedule' || github.event.inputs.run_real_tests == 'true' || contains(github.event.head_commit.message, '[test:real]') }} steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '22' cache: 'npm' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Validate API credentials run: | if [ -z "${{ secrets.FLOAT_API_KEY }}" ]; then echo "❌ FLOAT_API_KEY secret not configured" exit 1 fi - name: Setup test environment run: | cp .env.example .env echo "TEST_MOCK_MODE=false" >> .env echo "TEST_REAL_API=true" >> .env echo "LOG_LEVEL=error" >> .env echo "FLOAT_API_KEY=${{ secrets.FLOAT_API_KEY }}" >> .env echo "FLOAT_API_BASE_URL=${{ secrets.FLOAT_API_BASE_URL || 'https://api.float.com/v3' }}" >> .env - name: Run integration tests run: npm run test:integration:real - name: Upload test results uses: actions/upload-artifact@v4 if: always() with: name: test-results-real path: | coverage/ test-results/ retention-days: 7

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/asachs01/float-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server