2022-03-08 01:14:50 -05:00
|
|
|
export const stepInputs = `
|
|
|
|
- label: "Build Steps"
|
|
|
|
description: "Enter the steps necessary for your application."
|
|
|
|
widget: text
|
|
|
|
target: $BUILD_STEPS
|
|
|
|
- label: "Select a deployment branch"
|
|
|
|
description: "Select the branch we should use to generate your site from."
|
|
|
|
widget: text
|
|
|
|
target: $BRANCH
|
|
|
|
pattern: "^[a-z]+$"
|
|
|
|
invalidFeedback: "This field may only contain lowercase letters"
|
|
|
|
required: true
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const stepTemplate = `template:
|
|
|
|
pages:
|
|
|
|
script: $BUILD_STEPS
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- $BRANCH
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const compiledYamlBeforeSetup = `abc: def`;
|
|
|
|
|
|
|
|
export const compiledYamlAfterInitialLoad = `abc: def
|
|
|
|
pages:
|
|
|
|
script: $BUILD_STEPS
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- $BRANCH
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const compiledYaml = `abc: def
|
|
|
|
pages:
|
|
|
|
script: foo
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- bar
|
|
|
|
`;
|
2022-03-11 13:08:37 -05:00
|
|
|
|
|
|
|
export const steps = `
|
|
|
|
- inputs:
|
|
|
|
- label: foo
|
|
|
|
target: $FOO
|
|
|
|
widget: text
|
|
|
|
template:
|
|
|
|
foo: $FOO
|
|
|
|
- inputs:
|
|
|
|
- label: bar
|
|
|
|
target: $BAR
|
|
|
|
widget: text
|
|
|
|
template:
|
|
|
|
bar: $BAR
|
|
|
|
`;
|
|
|
|
|
2022-04-04 11:09:26 -04:00
|
|
|
export const compiledScenario1 = `foo: fooVal
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const compiledScenario2 = `foo: fooVal
|
|
|
|
bar: barVal
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const compiledScenario3 = `foo: newFooVal
|
|
|
|
bar: barVal
|
|
|
|
`;
|
|
|
|
|
2022-03-11 13:08:37 -05:00
|
|
|
export const fullTemplate = `
|
|
|
|
title: some title
|
|
|
|
description: some description
|
|
|
|
filename: foo.yml
|
|
|
|
steps:
|
|
|
|
- inputs:
|
|
|
|
- widget: text
|
|
|
|
label: foo
|
|
|
|
target: $BAR
|
|
|
|
template:
|
|
|
|
foo: $BAR
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const fullTemplateWithoutFilename = `
|
|
|
|
title: some title
|
|
|
|
description: some description
|
|
|
|
steps:
|
|
|
|
- inputs:
|
|
|
|
- widget: text
|
|
|
|
label: foo
|
|
|
|
target: $BAR
|
|
|
|
template:
|
|
|
|
foo: $BAR
|
|
|
|
`;
|