Skip to content

Commit 5dd69ce

Browse files
committed
remove commit validation in skeleton
Signed-off-by: shmck <[email protected]>
1 parent b0d2369 commit 5dd69ce

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
lines changed

src/schema/meta.ts

+35
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,40 @@ export default {
9595
},
9696
additionalProperties: false,
9797
},
98+
setup_action_without_commits: {
99+
type: "object",
100+
description:
101+
"A collection of files/commands that run when a level/step or solution is loaded",
102+
properties: {
103+
files: {
104+
$ref: "#/definitions/file_array",
105+
},
106+
commands: {
107+
$ref: "#/definitions/command_array",
108+
},
109+
watchers: {
110+
type: "array",
111+
items: {
112+
$ref: "#/definitions/file_path",
113+
// uniqueItems: true,
114+
},
115+
description:
116+
"An array file paths that, when updated, will trigger the test runner to run",
117+
},
118+
filter: {
119+
type: "string",
120+
description:
121+
"A regex pattern that will be passed to the test runner to limit the number of tests running",
122+
examples: ["^TestSuiteName"],
123+
},
124+
subtasks: {
125+
type: "boolean",
126+
description:
127+
'A feature that shows subtasks: all active test names and the status of the tests (pass/fail). Use together with "filter"',
128+
examples: [true],
129+
},
130+
},
131+
additionalProperties: false,
132+
},
98133
},
99134
};

src/schema/skeleton.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export default {
5353
examples: ["coderoad"],
5454
},
5555
setup: {
56-
$ref: "#/definitions/setup_action",
56+
$ref: "#/definitions/setup_action_without_commits",
5757
description:
58-
"Setup commits or commands used for setting up the test runner on tutorial launch",
58+
"Setup actions or commands used for setting up the test runner on tutorial launch",
5959
},
6060
},
6161
required: ["command", "args"],
@@ -135,9 +135,9 @@ export default {
135135
examples: ["L1", "L11"],
136136
},
137137
setup: {
138-
$ref: "#/definitions/setup_action",
138+
$ref: "#/definitions/setup_action_without_commits",
139139
description:
140-
"An optional point for loading commits, running commands or opening files",
140+
"An optional point for running actions, commands or opening files",
141141
},
142142
steps: {
143143
type: "array",
@@ -152,18 +152,18 @@ export default {
152152
setup: {
153153
allOf: [
154154
{
155-
$ref: "#/definitions/setup_action",
155+
$ref: "#/definitions/setup_action_without_commits",
156156
description:
157-
"A point for loading commits. It can also run commands and/or open files",
157+
"A point for running actions, commands and/or opening files",
158158
},
159159
],
160160
},
161161
solution: {
162162
allOf: [
163163
{
164-
$ref: "#/definitions/setup_action",
164+
$ref: "#/definitions/setup_action_without_commits",
165165
description:
166-
"The solution commits that can be loaded if the user gets stuck. It can also run commands and/or open files",
166+
"The solution can be loaded if the user gets stuck. It can run actions, commands and/or open files",
167167
},
168168
{
169169
required: [],

0 commit comments

Comments
 (0)