diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 000000000..6309f5958 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json + +steps: + - label: ":python: Run tests (make check yamllint)" + key: tests + command: ".buildkite/scripts/run-tests.sh" + agents: + image: "docker.elastic.co/ci-agent-images/pipelib:0.27.0@sha256:d1713778d27e0b6208f59ba8761f04ef033af4c4237cb2614a09d38584c5ff88" + cpu: "2" + memory: "2G" diff --git a/.buildkite/scripts/run-tests.sh b/.buildkite/scripts/run-tests.sh new file mode 100755 index 000000000..a474dcae5 --- /dev/null +++ b/.buildkite/scripts/run-tests.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -euo pipefail + +git config --global --add safe.directory "$PWD" +git fetch --prune --unshallow --tags || true + +make check yamllint diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 000000000..cb56c33d3 --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,49 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/catalog-info.json +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: ecs + description: Elastic Common Schema +spec: + type: library + owner: group:ecs + lifecycle: production + +--- +# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: buildkite-pipeline-ecs + description: ECS unit tests and lint checks + links: + - title: Pipeline + url: https://buildkite.com/elastic/ecs +spec: + type: buildkite-pipeline + owner: group:ecs + system: buildkite + implementation: + apiVersion: buildkite.elastic.dev/v1 + kind: Pipeline + metadata: + name: ecs + description: ECS unit tests and lint checks + spec: + repository: elastic/ecs + pipeline_file: ".buildkite/pipeline.yml" + branch_configuration: "main 8.* 9.* 10.*" + cancel_intermediate_builds: true + cancel_intermediate_builds_branch_filter: '!main !8.* !9.*' + skip_intermediate_builds: true + skip_intermediate_builds_branch_filter: '!main !8.* !9.*' + provider_settings: + build_pull_requests: true + build_pull_request_forks: false + build_tags: false + teams: + ecs: + access_level: MANAGE_BUILD_AND_READ + everyone: + access_level: READ_ONLY