Skip to main content
Glama
ci.yml2.39 kB
name: CI on: push: branches: [main, develop] pull_request: branches: [main, develop] jobs: test: name: Test on Node ${{ matrix.node-version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: node-version: [20.x, 22.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install system dependencies (Linux) if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y xvfb - name: Install Python setuptools (macOS) if: matrix.os == 'macos-latest' run: | brew install python-setuptools - name: Enable Corepack run: corepack enable - name: Install dependencies run: yarn install --frozen-lockfile - name: Lint run: yarn lint continue-on-error: true - name: Build run: yarn build - name: Test (Linux with Xvfb) if: matrix.os == 'ubuntu-latest' run: xvfb-run -a yarn test env: CI: true - name: Test (Windows/macOS) if: matrix.os != 'ubuntu-latest' run: yarn test env: CI: true - name: Upload coverage if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v4 with: files: ./coverage/lcov.info flags: unittests name: codecov-umbrella fail_ci_if_error: false build-check: name: Build Check runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: "20" - name: Enable Corepack run: corepack enable - name: Install dependencies run: yarn install --frozen-lockfile - name: Build run: yarn build - name: Check for build artifacts run: | if [ ! -d "dist" ]; then echo "Error: dist directory not found" exit 1 fi echo "✓ Package built successfully"

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/Digital-Defiance/mcp-screenshot'

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