Skip to content

ci: add minimal tests #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
agents:
provider: "gcp"
machineType: "n1-standard-4"

steps:
- label: "Test"
command: "npm install && npm test"
25 changes: 25 additions & 0 deletions .buildkite/pull-requests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"jobs": [
{
"enabled": true,
"pipelineSlug": "elastic-mcp-server-elasticsearch",
"allow_org_users": true,
"allowed_repo_permissions": [
"admin",
"write"
],
"allowed_list": [],
"set_commit_status": true,
"commit_status_context": "buildkite/elastic-mcp-server-elasticsearch",
"build_on_commit": false,
"build_on_comment": true,
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))",
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))",
"skip_ci_labels": [
"skip-ci"
],
"skip_target_branches": [],
"always_require_ci_on_changed": []
}
]
}
39 changes: 39 additions & 0 deletions catalog-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Declare your Buildkite pipelines below
---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: buildkite-pipeline-mcp-server-elasticsearch
description: Buildkite Pipeline for Elasticsearch MCP Server
links:
- title: Pipeline
url: https://buildkite.com/elastic/mcp-server-elasticsearch

# ------------------------------------------------------------------------------
# this is the main pipeline, triggered via pull requests and merges

spec:
type: buildkite-pipeline
owner: group:search-eng
system: buildkite
implementation:
apiVersion: buildkite.elastic.dev/v1
kind: Pipeline
metadata:
name: elastic-mcp-server-elasticsearch
description:
spec:
branch_configuration: "main"
repository: elastic/mcp-server-elasticsearch
pipeline_file: ".buildkite/pipeline.yml"
provider_settings:
skip_pull_request_builds_for_existing_commits: false
teams:
search-extract-and-transform:
access_level: MANAGE_BUILD_AND_READ
everyone:
access_level: READ_ONLY
search-productivity-team: {}

---
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"prepare": "npm run build",
"watch": "tsc --watch",
"start": "node dist/index.js",
"inspector": "npx @modelcontextprotocol/inspector node dist/index.js"
"inspector": "npx @modelcontextprotocol/inspector node dist/index.js",
"test": "npm run build"
},
"dependencies": {
"@elastic/elasticsearch": "^8.17.1",
Expand Down