0.1.0 • Published 1 year ago
@triarius/pipeline-schema v0.1.0
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
1 year ago