Skip to content

Commit

Permalink
add buildkite support (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentGarreau committed Mar 5, 2024
1 parent 32a7a3f commit 9cbab45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parse-inputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ function parseSplitInputs(env = {}, configEnv = {}) {
// GitLabCI index starts with 1
// convert it to zero base
SPLIT_INDEX = Number(env.CI_NODE_INDEX) - 1
} else if (env.BUILDKITE) {
ciName = 'Buildkite'
SPLIT = env.BUILDKITE_PARALLEL_JOB_COUNT
SPLIT_INDEX = env.BUILDKITE_PARALLEL_JOB
} else {
throw new Error('Do not know how to determine the correct split')
}
Expand Down

0 comments on commit 9cbab45

Please sign in to comment.