-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathinput.yml
173 lines (148 loc) · 3.85 KB
/
input.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
steps:
# Different nesting formats
- input
- input: "A label"
- input:
fields:
- text: "Field 1"
key: "field-1"
- type: "input"
label: "A label"
fields:
- text: "Field 1"
key: "field-1"
# All the options
- input: "A label"
- input: "A label"
branches: master
- input: "A label"
id: "an-id"
- input: "A label"
identifier: "an-id"
- input: "A label"
prompt: "A prompt"
- input: "A label"
prompt: "A prompt"
fields:
- text: "Field 1"
key: "field-1"
- text: "Field 2"
key: "field-2"
required: false
default: "Field 2 Default"
hint: "Field 2 Hint"
- select: "Select 1"
key: "select-1"
options:
- label: "Select 1 Option 1"
value: "select-1-option-1"
- label: "Select 1 Option 2"
value: "select-1-option-2"
- select: "Select 2"
key: "select-2"
hint: "Select 2 Hint"
required: false
default: "select-2-option-1"
options:
- label: "Select 2 Option 1"
value: "select-2-option-1"
- input: "A label"
if: build.message !~ /skip tests/
- input: "A label"
key: important-step
- input: "A label"
depends_on: depend-on-me
- input: "A label"
depends_on:
- depend-on-me-1
- depend-on-me-2
- input: "A label"
depends_on:
- step: depend-on-me-1
- step: depend-on-me-2
- input: "A label"
depends_on:
- depend-on-me-1
- step: depend-on-me-2
- input: "A label"
depends_on:
- step: depend-on-me
allow_failure: true
- input: "A label"
allow_dependency_failure: true
- input: "A label"
fields:
- select: "Multiple fields"
key: "multiple-fields"
multiple: true
options:
- label: "Option 1"
value: option-1
- label: "Option 2"
value: option-2
# Text field formats
- input: "A label"
prompt: "A prompt"
fields:
- text: "Formatted field 1"
key: "formatted-field-1"
format: "\\d{4,4}"
- text: "Formatted field 2"
key: "formatted-field-2"
format: "[0-9]{3}"
- text: "Formatted field 3"
key: "formatted-field-3"
format: "[0-9a-f]+"
# Key formats
- input: "Tests for key formatting"
fields:
# Text fields
- text: "Alphanumeric key, leading characters alpha"
key: aBc123
- text: "Alphanumeric key, leading characters numeric"
key: 123aBc
- text: "Underscored key"
key: underscored_key
- text: "Underscored key, leading underscore"
key: _underscored_key
- text: "Dasherized key"
key: dasherized-key
- text: "Dasherized key, leading dash"
key: -dasherized-key
# Select fields
- select: "Alphanumeric key, leading characters alpha"
key: aBc123
multiple: true
options:
- label: "Option 1"
value: option-1
- select: "Alphanumeric key, leading characters numeric"
key: 123aBc
multiple: true
options:
- label: "Option 1"
value: option-1
- select: "Underscored key"
key: underscored_key
multiple: true
options:
- label: "Option 1"
value: option-1
- select: "Underscored key, leading underscore"
key: _underscored_key
multiple: true
options:
- label: "Option 1"
value: option-1
- select: "Dasherized key"
key: dasherized-key
multiple: true
options:
- label: "Option 1"
value: option-1
- select: "Dasherized key, leading dash"
key: -dasherized-key
multiple: true
options:
- label: "Option 1"
value: option-1