Licence
MIT
Version
0.1.0
Deps
0
Size
109 kB
Vulns
0
Weekly
0
Buildkite Pipeline Schema
WARNING: This is experimental and may not work as expected
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");
}