doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.c8rc.json +0 -8
- package/.mocharc.yml +0 -1
- package/icon.png +0 -0
- package/scripts/check-coverage-ratchet.cjs +0 -123
- package/scripts/createCjsWrapper.js +0 -25
- package/scripts/generateTypes.cjs +0 -54
- package/src/detectTests.ts +0 -660
- package/src/index.ts +0 -3
- package/src/schemas/build/checkLink_v2.schema.json +0 -81
- package/src/schemas/build/checkLink_v3.schema.json +0 -92
- package/src/schemas/build/click_v3.schema.json +0 -145
- package/src/schemas/build/config_v2.schema.json +0 -1079
- package/src/schemas/build/config_v3.schema.json +0 -696
- package/src/schemas/build/context_v2.schema.json +0 -135
- package/src/schemas/build/context_v3.schema.json +0 -229
- package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
- package/src/schemas/build/find_v2.schema.json +0 -168
- package/src/schemas/build/find_v3.schema.json +0 -214
- package/src/schemas/build/goTo_v2.schema.json +0 -63
- package/src/schemas/build/goTo_v3.schema.json +0 -257
- package/src/schemas/build/httpRequest_v2.schema.json +0 -321
- package/src/schemas/build/httpRequest_v3.schema.json +0 -439
- package/src/schemas/build/loadCookie_v3.schema.json +0 -138
- package/src/schemas/build/loadVariables_v3.schema.json +0 -10
- package/src/schemas/build/moveTo_v2.schema.json +0 -99
- package/src/schemas/build/openApi_v2.schema.json +0 -76
- package/src/schemas/build/openApi_v3.schema.json +0 -161
- package/src/schemas/build/record_v3.schema.json +0 -70
- package/src/schemas/build/report_v3.schema.json +0 -53
- package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
- package/src/schemas/build/runCode_v2.schema.json +0 -201
- package/src/schemas/build/runCode_v3.schema.json +0 -138
- package/src/schemas/build/runShell_v2.schema.json +0 -189
- package/src/schemas/build/runShell_v3.schema.json +0 -156
- package/src/schemas/build/saveCookie_v3.schema.json +0 -149
- package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
- package/src/schemas/build/screenshot_v3.schema.json +0 -250
- package/src/schemas/build/setVariables_v2.schema.json +0 -39
- package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
- package/src/schemas/build/spec_v2.schema.json +0 -199
- package/src/schemas/build/spec_v3.schema.json +0 -213
- package/src/schemas/build/startRecording_v2.schema.json +0 -57
- package/src/schemas/build/step_v3.schema.json +0 -669
- package/src/schemas/build/stopRecord_v3.schema.json +0 -13
- package/src/schemas/build/stopRecording_v2.schema.json +0 -33
- package/src/schemas/build/test_v2.schema.json +0 -244
- package/src/schemas/build/test_v3.schema.json +0 -292
- package/src/schemas/build/typeKeys_v2.schema.json +0 -72
- package/src/schemas/build/type_v3.schema.json +0 -131
- package/src/schemas/build/wait_v2.schema.json +0 -42
- package/src/schemas/build/wait_v3.schema.json +0 -37
- package/src/schemas/dereferenceSchemas.cjs +0 -208
- package/src/schemas/index.ts +0 -6
- package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
- package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
- package/src/schemas/output_schemas/click_v1.schema.json +0 -60
- package/src/schemas/output_schemas/click_v3.schema.json +0 -252
- package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
- package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
- package/src/schemas/output_schemas/context_v2.schema.json +0 -134
- package/src/schemas/output_schemas/context_v3.schema.json +0 -374
- package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
- package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/find_v1.schema.json +0 -171
- package/src/schemas/output_schemas/find_v2.schema.json +0 -184
- package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
- package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
- package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
- package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
- package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
- package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
- package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
- package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
- package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
- package/src/schemas/output_schemas/record_v3.schema.json +0 -101
- package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
- package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
- package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
- package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
- package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
- package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
- package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
- package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
- package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
- package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
- package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
- package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
- package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
- package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
- package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
- package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
- package/src/schemas/output_schemas/type_v1.schema.json +0 -62
- package/src/schemas/output_schemas/type_v3.schema.json +0 -244
- package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
- package/src/schemas/schemas.json +0 -121331
- package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
- package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
- package/src/schemas/src_schemas/click_v1.schema.json +0 -60
- package/src/schemas/src_schemas/click_v3.schema.json +0 -144
- package/src/schemas/src_schemas/config_v2.schema.json +0 -929
- package/src/schemas/src_schemas/config_v3.schema.json +0 -633
- package/src/schemas/src_schemas/context_v2.schema.json +0 -108
- package/src/schemas/src_schemas/context_v3.schema.json +0 -202
- package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
- package/src/schemas/src_schemas/find_v1.schema.json +0 -137
- package/src/schemas/src_schemas/find_v2.schema.json +0 -155
- package/src/schemas/src_schemas/find_v3.schema.json +0 -210
- package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
- package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
- package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
- package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
- package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
- package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
- package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
- package/src/schemas/src_schemas/record_v3.schema.json +0 -69
- package/src/schemas/src_schemas/report_v3.schema.json +0 -52
- package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
- package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
- package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
- package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
- package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
- package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
- package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
- package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
- package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
- package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
- package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
- package/src/schemas/src_schemas/step_v3.schema.json +0 -632
- package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
- package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/src_schemas/test_v2.schema.json +0 -200
- package/src/schemas/src_schemas/test_v3.schema.json +0 -268
- package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
- package/src/schemas/src_schemas/type_v1.schema.json +0 -62
- package/src/schemas/src_schemas/type_v3.schema.json +0 -118
- package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
- package/src/types/generated/checkLink_v3.ts +0 -29
- package/src/types/generated/click_v3.ts +0 -17
- package/src/types/generated/config_v3.ts +0 -405
- package/src/types/generated/context_v3.ts +0 -112
- package/src/types/generated/dragAndDrop_v3.ts +0 -39
- package/src/types/generated/endRecord_v3.ts +0 -10
- package/src/types/generated/find_v3.ts +0 -17
- package/src/types/generated/goTo_v3.ts +0 -48
- package/src/types/generated/httpRequest_v3.ts +0 -17
- package/src/types/generated/loadCookie_v3.ts +0 -17
- package/src/types/generated/loadVariables_v3.ts +0 -10
- package/src/types/generated/openApi_v3.ts +0 -64
- package/src/types/generated/record_v3.ts +0 -34
- package/src/types/generated/report_v3.ts +0 -183
- package/src/types/generated/resolvedTests_v3.ts +0 -585
- package/src/types/generated/runCode_v3.ts +0 -59
- package/src/types/generated/runShell_v3.ts +0 -58
- package/src/types/generated/saveCookie_v3.ts +0 -17
- package/src/types/generated/screenshot_v3.ts +0 -76
- package/src/types/generated/sourceIntegration_v3.ts +0 -31
- package/src/types/generated/spec_v3.ts +0 -166
- package/src/types/generated/step_v3.ts +0 -1288
- package/src/types/generated/stopRecord_v3.ts +0 -10
- package/src/types/generated/test_v3.ts +0 -3048
- package/src/types/generated/type_v3.ts +0 -56
- package/src/types/generated/wait_v3.ts +0 -13
- package/src/validate.ts +0 -627
- package/tsconfig.json +0 -22
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "runCode",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Assemble and run code.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "ID of the step."
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Description of the step."
|
|
13
|
-
},
|
|
14
|
-
"action": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"const": "runCode",
|
|
17
|
-
"description": "The action to perform."
|
|
18
|
-
},
|
|
19
|
-
"language": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "Language of the code to run. If not specified, the code is run in the shell.",
|
|
22
|
-
"enum": [
|
|
23
|
-
"python",
|
|
24
|
-
"bash",
|
|
25
|
-
"javascript"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"code": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Code to run."
|
|
31
|
-
},
|
|
32
|
-
"args": {
|
|
33
|
-
"type": "array",
|
|
34
|
-
"description": "Arguments for the command.",
|
|
35
|
-
"items": {
|
|
36
|
-
"oneOf": [
|
|
37
|
-
{
|
|
38
|
-
"type": "string"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"default": []
|
|
43
|
-
},
|
|
44
|
-
"workingDirectory": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"description": "Working directory for the command.",
|
|
47
|
-
"default": "."
|
|
48
|
-
},
|
|
49
|
-
"exitCodes": {
|
|
50
|
-
"type": "array",
|
|
51
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
52
|
-
"items": {
|
|
53
|
-
"oneOf": [
|
|
54
|
-
{
|
|
55
|
-
"type": "integer"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"default": [0]
|
|
60
|
-
},
|
|
61
|
-
"output": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "Content expected in the command's output. If the expected content can't be found in the command's output (either stdout or stderr), the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
64
|
-
},
|
|
65
|
-
"savePath": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "File path to save the command's output, relative to `saveDirectory`."
|
|
68
|
-
},
|
|
69
|
-
"saveDirectory": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
72
|
-
},
|
|
73
|
-
"maxVariation": {
|
|
74
|
-
"type": "integer",
|
|
75
|
-
"description": "Allowed variation in percentage of text different between the current output and previously saved output. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `savePath`, this value is ignored.",
|
|
76
|
-
"default": 0,
|
|
77
|
-
"minimum": 0,
|
|
78
|
-
"maximum": 100
|
|
79
|
-
},
|
|
80
|
-
"overwrite": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"description": "If `true`, overwrites the existing output at `savePath` if it exists.\nIf `byVariation`, overwrites the existing output at `savePath` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
83
|
-
"enum": ["true", "false", "byVariation"],
|
|
84
|
-
"default": "false"
|
|
85
|
-
},
|
|
86
|
-
"timeout": {
|
|
87
|
-
"type": "integer",
|
|
88
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
89
|
-
"default": 60000
|
|
90
|
-
},
|
|
91
|
-
"setVariables": {
|
|
92
|
-
"type": "array",
|
|
93
|
-
"description": "Extract environment variables from the command's output.",
|
|
94
|
-
"items": {
|
|
95
|
-
"oneOf": [
|
|
96
|
-
{
|
|
97
|
-
"description": "",
|
|
98
|
-
"type": "object",
|
|
99
|
-
"properties": {
|
|
100
|
-
"name": {
|
|
101
|
-
"description": "Name of the environment variable to set.",
|
|
102
|
-
"type": "string"
|
|
103
|
-
},
|
|
104
|
-
"regex": {
|
|
105
|
-
"description": "Regex to extract the environment variable from the command's output.",
|
|
106
|
-
"type": "string"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"required": ["name", "regex"]
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
"default": []
|
|
114
|
-
},
|
|
115
|
-
"outputs": {
|
|
116
|
-
"type": "object",
|
|
117
|
-
"description": "Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.",
|
|
118
|
-
"patternProperties": {
|
|
119
|
-
"^[A-Za-z0-9_]+$": {
|
|
120
|
-
"type": "string",
|
|
121
|
-
"description": "Runtime expression for a user-defined output value."
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"properties": {
|
|
125
|
-
"stdout": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"description": "Standard output of the command.",
|
|
128
|
-
"readOnly": true
|
|
129
|
-
},
|
|
130
|
-
"stderr": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"description": "Standard error of the command.",
|
|
133
|
-
"readOnly": true
|
|
134
|
-
},
|
|
135
|
-
"exitCode": {
|
|
136
|
-
"type": "integer",
|
|
137
|
-
"description": "Exit code of the command.",
|
|
138
|
-
"readOnly": true
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"dynamicDefaults": {
|
|
144
|
-
"id": "uuid"
|
|
145
|
-
},
|
|
146
|
-
"additionalProperties": false,
|
|
147
|
-
"required": ["action", "code", "language"],
|
|
148
|
-
"examples": [
|
|
149
|
-
{
|
|
150
|
-
"action": "runCode",
|
|
151
|
-
"language": "javascript",
|
|
152
|
-
"code": "console.log('Hello, ${process.env.USER}!');"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"action": "runCode",
|
|
156
|
-
"language": "bash",
|
|
157
|
-
"code": "docker run hello-world",
|
|
158
|
-
"timeout": 20000,
|
|
159
|
-
"exitCodes": [0],
|
|
160
|
-
"output": "Hello from Docker!"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"action": "runCode",
|
|
164
|
-
"language": "javascript",
|
|
165
|
-
"code": "return false",
|
|
166
|
-
"exitCodes": [1]
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"action": "runCode",
|
|
170
|
-
"language": "python",
|
|
171
|
-
"code": "print('Hello from Python')",
|
|
172
|
-
"workingDirectory": ".",
|
|
173
|
-
"exitCodes": [0],
|
|
174
|
-
"output": "Hello from Python!",
|
|
175
|
-
"savePath": "python-output.txt",
|
|
176
|
-
"saveDirectory": "output",
|
|
177
|
-
"maxVariation": 10,
|
|
178
|
-
"overwrite": "byVariation"
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "runCode",
|
|
4
|
-
"description": "Assemble and run code.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"$ref": "#/components/schemas/object"
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"components": {
|
|
11
|
-
"schemas": {
|
|
12
|
-
"object": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"required": [
|
|
15
|
-
"code",
|
|
16
|
-
"language"
|
|
17
|
-
],
|
|
18
|
-
"properties": {
|
|
19
|
-
"language": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "Language of the code to run.",
|
|
22
|
-
"enum": [
|
|
23
|
-
"python",
|
|
24
|
-
"bash",
|
|
25
|
-
"javascript"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"code": {
|
|
29
|
-
"description": "Code to run.",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"args": {
|
|
33
|
-
"type": "array",
|
|
34
|
-
"description": "Arguments for the command.",
|
|
35
|
-
"items": {
|
|
36
|
-
"anyOf": [
|
|
37
|
-
{
|
|
38
|
-
"type": "string"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"default": []
|
|
43
|
-
},
|
|
44
|
-
"workingDirectory": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"description": "Working directory for the command.",
|
|
47
|
-
"default": "."
|
|
48
|
-
},
|
|
49
|
-
"exitCodes": {
|
|
50
|
-
"type": "array",
|
|
51
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
52
|
-
"items": {
|
|
53
|
-
"anyOf": [
|
|
54
|
-
{
|
|
55
|
-
"type": "integer"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"default": [
|
|
60
|
-
0
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"stdio": {
|
|
64
|
-
"type": "string",
|
|
65
|
-
"description": "Content expected in the command's output. If the expected content can't be found in the command's output (either stdout or stderr), the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
66
|
-
},
|
|
67
|
-
"path": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
70
|
-
},
|
|
71
|
-
"directory": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
74
|
-
},
|
|
75
|
-
"maxVariation": {
|
|
76
|
-
"type": "number",
|
|
77
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
78
|
-
"default": 0,
|
|
79
|
-
"minimum": 0,
|
|
80
|
-
"maximum": 1
|
|
81
|
-
},
|
|
82
|
-
"overwrite": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
85
|
-
"enum": [
|
|
86
|
-
"true",
|
|
87
|
-
"false",
|
|
88
|
-
"aboveVariation"
|
|
89
|
-
],
|
|
90
|
-
"default": "aboveVariation"
|
|
91
|
-
},
|
|
92
|
-
"timeout": {
|
|
93
|
-
"type": "integer",
|
|
94
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
95
|
-
"default": 60000
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"title": "Run code (detailed)"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"examples": [
|
|
103
|
-
{
|
|
104
|
-
"language": "javascript",
|
|
105
|
-
"code": "console.log('Hello, ${process.env.USER}!');"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"language": "bash",
|
|
109
|
-
"code": "docker run hello-world",
|
|
110
|
-
"timeout": 20000,
|
|
111
|
-
"exitCodes": [
|
|
112
|
-
0
|
|
113
|
-
],
|
|
114
|
-
"stdio": "Hello from Docker!"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"language": "javascript",
|
|
118
|
-
"code": "return false",
|
|
119
|
-
"exitCodes": [
|
|
120
|
-
1
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"language": "python",
|
|
125
|
-
"code": "print('Hello from Python')",
|
|
126
|
-
"workingDirectory": ".",
|
|
127
|
-
"exitCodes": [
|
|
128
|
-
0
|
|
129
|
-
],
|
|
130
|
-
"stdio": "Hello from Python!",
|
|
131
|
-
"path": "python-output.txt",
|
|
132
|
-
"directory": "output",
|
|
133
|
-
"maxVariation": 0.1,
|
|
134
|
-
"overwrite": "aboveVariation"
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "runShell",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Perform a native shell command.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "runShell"
|
|
9
|
-
},
|
|
10
|
-
"command": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Command to perform in the machine's default shell."
|
|
13
|
-
},
|
|
14
|
-
"env": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Path to a `.env` file to load before performing the action."
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"required": [
|
|
21
|
-
"action",
|
|
22
|
-
"command"
|
|
23
|
-
],
|
|
24
|
-
"examples": [
|
|
25
|
-
{
|
|
26
|
-
"action": "runShell",
|
|
27
|
-
"command": "echo $username"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"action": "runShell",
|
|
31
|
-
"command": "echo $username",
|
|
32
|
-
"env": "./variables.env"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "runShell",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Perform a native shell command.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "ID of the step."
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Description of the step."
|
|
13
|
-
},
|
|
14
|
-
"action": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"const": "runShell",
|
|
17
|
-
"description": "The action to perform."
|
|
18
|
-
},
|
|
19
|
-
"command": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "Command to perform in the machine's default shell."
|
|
22
|
-
},
|
|
23
|
-
"args": {
|
|
24
|
-
"type": "array",
|
|
25
|
-
"description": "Arguments for the command.",
|
|
26
|
-
"items": {
|
|
27
|
-
"oneOf": [
|
|
28
|
-
{
|
|
29
|
-
"type": "string"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"default": []
|
|
34
|
-
},
|
|
35
|
-
"workingDirectory": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"description": "Working directory for the command.",
|
|
38
|
-
"default": "."
|
|
39
|
-
},
|
|
40
|
-
"exitCodes": {
|
|
41
|
-
"type": "array",
|
|
42
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
43
|
-
"items": {
|
|
44
|
-
"oneOf": [
|
|
45
|
-
{
|
|
46
|
-
"type": "integer"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"default": [0]
|
|
51
|
-
},
|
|
52
|
-
"output": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "Content expected in the command's output. If the expected content can't be found in the command's output (either stdout or stderr), the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
55
|
-
},
|
|
56
|
-
"savePath": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "File path to save the command's output, relative to `saveDirectory`."
|
|
59
|
-
},
|
|
60
|
-
"saveDirectory": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
63
|
-
},
|
|
64
|
-
"maxVariation": {
|
|
65
|
-
"type": "integer",
|
|
66
|
-
"description": "Allowed variation in percentage of text different between the current output and previously saved output. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `savePath`, this value is ignored.",
|
|
67
|
-
"default": 0,
|
|
68
|
-
"minimum": 0,
|
|
69
|
-
"maximum": 100
|
|
70
|
-
},
|
|
71
|
-
"overwrite": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"description": "If `true`, overwrites the existing output at `savePath` if it exists.\nIf `byVariation`, overwrites the existing output at `savePath` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
74
|
-
"enum": [
|
|
75
|
-
"true",
|
|
76
|
-
"false",
|
|
77
|
-
"byVariation"
|
|
78
|
-
],
|
|
79
|
-
"default": "false"
|
|
80
|
-
},
|
|
81
|
-
"timeout": {
|
|
82
|
-
"type": "integer",
|
|
83
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
84
|
-
"default": 60000
|
|
85
|
-
},
|
|
86
|
-
"setVariables": {
|
|
87
|
-
"type": "array",
|
|
88
|
-
"description": "Extract environment variables from the command's output.",
|
|
89
|
-
"items": {
|
|
90
|
-
"oneOf": [
|
|
91
|
-
{
|
|
92
|
-
"description": "",
|
|
93
|
-
"type": "object",
|
|
94
|
-
"properties": {
|
|
95
|
-
"name": {
|
|
96
|
-
"description": "Name of the environment variable to set.",
|
|
97
|
-
"type": "string"
|
|
98
|
-
},
|
|
99
|
-
"regex": {
|
|
100
|
-
"description": "Regex to extract the environment variable from the command's output.",
|
|
101
|
-
"type": "string"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"required": ["name", "regex"]
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
"default": []
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"dynamicDefaults": {
|
|
112
|
-
"id": "uuid"
|
|
113
|
-
},
|
|
114
|
-
"additionalProperties": false,
|
|
115
|
-
"required": ["action", "command"],
|
|
116
|
-
"examples": [
|
|
117
|
-
{
|
|
118
|
-
"action": "runShell",
|
|
119
|
-
"command": "echo",
|
|
120
|
-
"args": ["$USER"]
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"action": "runShell",
|
|
124
|
-
"command": "echo",
|
|
125
|
-
"args": ["hello-world"],
|
|
126
|
-
"id": "ddec5e20-2e81-4f38-867c-92c8d9516755",
|
|
127
|
-
"description": "This is a test!"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"action": "runShell",
|
|
131
|
-
"command": "docker run hello-world",
|
|
132
|
-
"timeout": 20000,
|
|
133
|
-
"exitCodes": [0],
|
|
134
|
-
"output": "Hello from Docker!"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"action": "runShell",
|
|
138
|
-
"command": "false",
|
|
139
|
-
"exitCodes": [1]
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"action": "runShell",
|
|
143
|
-
"command": "echo",
|
|
144
|
-
"args": ["setup"],
|
|
145
|
-
"exitCodes": [0],
|
|
146
|
-
"output": "/.*?/",
|
|
147
|
-
"setVariables": [
|
|
148
|
-
{
|
|
149
|
-
"name": "TEST",
|
|
150
|
-
"regex": ".*"
|
|
151
|
-
}
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"action": "runShell",
|
|
156
|
-
"command": "docker run hello-world",
|
|
157
|
-
"workingDirectory": ".",
|
|
158
|
-
"exitCodes": [0],
|
|
159
|
-
"output": "Hello from Docker!",
|
|
160
|
-
"savePath": "docker-output.txt",
|
|
161
|
-
"saveDirectory": "output",
|
|
162
|
-
"maxVariation": 10,
|
|
163
|
-
"overwrite": "byVariation"
|
|
164
|
-
}
|
|
165
|
-
]
|
|
166
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "runShell",
|
|
4
|
-
"description": "Perform a native shell command.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"$ref": "#/components/schemas/string"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"$ref": "#/components/schemas/object"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"components": {
|
|
14
|
-
"schemas": {
|
|
15
|
-
"string": {
|
|
16
|
-
"title": "Run shell command (simple)",
|
|
17
|
-
"description": "Command to perform in the machine's default shell.",
|
|
18
|
-
"type": "string",
|
|
19
|
-
"transform": [
|
|
20
|
-
"trim"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"object": {
|
|
24
|
-
"type": "object",
|
|
25
|
-
"required": [
|
|
26
|
-
"command"
|
|
27
|
-
],
|
|
28
|
-
"additionalProperties": false,
|
|
29
|
-
"properties": {
|
|
30
|
-
"command": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"description": "Command to perform in the machine's default shell."
|
|
33
|
-
},
|
|
34
|
-
"args": {
|
|
35
|
-
"type": "array",
|
|
36
|
-
"description": "Arguments for the command.",
|
|
37
|
-
"items": {
|
|
38
|
-
"anyOf": [
|
|
39
|
-
{
|
|
40
|
-
"type": "string"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"default": []
|
|
45
|
-
},
|
|
46
|
-
"workingDirectory": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "Working directory for the command.",
|
|
49
|
-
"default": "."
|
|
50
|
-
},
|
|
51
|
-
"exitCodes": {
|
|
52
|
-
"type": "array",
|
|
53
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
54
|
-
"items": {
|
|
55
|
-
"anyOf": [
|
|
56
|
-
{
|
|
57
|
-
"type": "integer"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
"default": [
|
|
62
|
-
0
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"stdio": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
68
|
-
},
|
|
69
|
-
"path": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
72
|
-
},
|
|
73
|
-
"directory": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
76
|
-
},
|
|
77
|
-
"maxVariation": {
|
|
78
|
-
"type": "number",
|
|
79
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
80
|
-
"default": 0,
|
|
81
|
-
"minimum": 0,
|
|
82
|
-
"maximum": 1
|
|
83
|
-
},
|
|
84
|
-
"overwrite": {
|
|
85
|
-
"type": "string",
|
|
86
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
87
|
-
"enum": [
|
|
88
|
-
"true",
|
|
89
|
-
"false",
|
|
90
|
-
"aboveVariation"
|
|
91
|
-
],
|
|
92
|
-
"default": "aboveVariation"
|
|
93
|
-
},
|
|
94
|
-
"timeout": {
|
|
95
|
-
"type": "integer",
|
|
96
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
97
|
-
"default": 60000
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"title": "Run shell command (detailed)"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"examples": [
|
|
105
|
-
"docker run hello-world",
|
|
106
|
-
{
|
|
107
|
-
"command": "echo",
|
|
108
|
-
"args": [
|
|
109
|
-
"$USER"
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"command": "echo",
|
|
114
|
-
"args": [
|
|
115
|
-
"hello-world"
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"command": "docker run hello-world",
|
|
120
|
-
"timeout": 20000,
|
|
121
|
-
"exitCodes": [
|
|
122
|
-
0
|
|
123
|
-
],
|
|
124
|
-
"stdio": "Hello from Docker!"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"command": "false",
|
|
128
|
-
"exitCodes": [
|
|
129
|
-
1
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"command": "echo",
|
|
134
|
-
"args": [
|
|
135
|
-
"setup"
|
|
136
|
-
],
|
|
137
|
-
"exitCodes": [
|
|
138
|
-
0
|
|
139
|
-
],
|
|
140
|
-
"stdio": "/.*?/"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"command": "docker run hello-world",
|
|
144
|
-
"workingDirectory": ".",
|
|
145
|
-
"exitCodes": [
|
|
146
|
-
0
|
|
147
|
-
],
|
|
148
|
-
"stdio": "Hello from Docker!",
|
|
149
|
-
"path": "docker-output.txt",
|
|
150
|
-
"directory": "output",
|
|
151
|
-
"maxVariation": 0.1,
|
|
152
|
-
"overwrite": "aboveVariation"
|
|
153
|
-
}
|
|
154
|
-
]
|
|
155
|
-
}
|