Skip to main content
Glama
ci.yml2.62 kB
name: CI/CD Pipeline on: push: branches: [ main, develop ] pull_request: branches: [ main ] jobs: test: runs-on: ubuntu-latest strategy: matrix: node-version: [18.x, 20.x] 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 }} cache: 'npm' - name: Install dependencies run: npm ci - name: Run linter run: npm run lint - name: Run type check run: npx tsc --noEmit - name: Run tests run: npm test - name: Build project run: npm run build - name: Test build output run: node build/index.js --help || true build-dashboard: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '18.x' cache: 'npm' cache-dependency-path: dashboard/package-lock.json - name: Install dashboard dependencies run: | cd dashboard npm ci - name: Build dashboard run: | cd dashboard npm run build - name: Upload dashboard build artifacts uses: actions/upload-artifact@v4 with: name: dashboard-build path: dashboard/.next/ security-scan: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Run security audit run: npm audit --audit-level moderate - name: Run Snyk security scan uses: snyk/actions/node@master continue-on-error: true env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: args: --severity-threshold=high release: runs-on: ubuntu-latest needs: [test, build-dashboard] if: github.ref == 'refs/heads/main' && github.event_name == 'push' steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '18.x' cache: 'npm' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Create release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | # This would create a release if using semantic-release echo "Creating release..." # npx semantic-release

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/cuongpo/hyperion-mcp-server'

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