0.1.0 • Published 3 years ago

@triarius/pipeline-schema v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Buildkite Pipeline Schema

Typescript Schema for buildkite generated from https://github.com/buildkite/pipeline-schema

import { Pipeline, isPipeline } from  "@triarius/pipeline-schema";

# you can read this from the filesystem
const pipeline: Pipeline = `
steps:
  - name: hello_world
    command: echo Hello, World!
`;

# and check the pipeline is valid here
if (!isPipeline(pipeline)) {
  throw new Error("not a pipeline");
}
0.1.0

3 years ago