Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature/markdown as master #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 24, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove commit validation in skeleton
Signed-off-by: shmck <[email protected]>
  • Loading branch information
ShMcK committed Jun 21, 2020
commit 5dd69ce04406e730a8f9bc409edfb58521a31d56
35 changes: 35 additions & 0 deletions src/schema/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,40 @@ export default {
},
additionalProperties: false,
},
setup_action_without_commits: {
type: "object",
description:
"A collection of files/commands that run when a level/step or solution is loaded",
properties: {
files: {
$ref: "#/definitions/file_array",
},
commands: {
$ref: "#/definitions/command_array",
},
watchers: {
type: "array",
items: {
$ref: "#/definitions/file_path",
// uniqueItems: true,
},
description:
"An array file paths that, when updated, will trigger the test runner to run",
},
filter: {
type: "string",
description:
"A regex pattern that will be passed to the test runner to limit the number of tests running",
examples: ["^TestSuiteName"],
},
subtasks: {
type: "boolean",
description:
'A feature that shows subtasks: all active test names and the status of the tests (pass/fail). Use together with "filter"',
examples: [true],
},
},
additionalProperties: false,
},
},
};
16 changes: 8 additions & 8 deletions src/schema/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export default {
examples: ["coderoad"],
},
setup: {
$ref: "#/definitions/setup_action",
$ref: "#/definitions/setup_action_without_commits",
description:
"Setup commits or commands used for setting up the test runner on tutorial launch",
"Setup actions or commands used for setting up the test runner on tutorial launch",
},
},
required: ["command", "args"],
Expand Down Expand Up @@ -135,9 +135,9 @@ export default {
examples: ["L1", "L11"],
},
setup: {
$ref: "#/definitions/setup_action",
$ref: "#/definitions/setup_action_without_commits",
description:
"An optional point for loading commits, running commands or opening files",
"An optional point for running actions, commands or opening files",
},
steps: {
type: "array",
Expand All @@ -152,18 +152,18 @@ export default {
setup: {
allOf: [
{
$ref: "#/definitions/setup_action",
$ref: "#/definitions/setup_action_without_commits",
description:
"A point for loading commits. It can also run commands and/or open files",
"A point for running actions, commands and/or opening files",
},
],
},
solution: {
allOf: [
{
$ref: "#/definitions/setup_action",
$ref: "#/definitions/setup_action_without_commits",
description:
"The solution commits that can be loaded if the user gets stuck. It can also run commands and/or open files",
"The solution can be loaded if the user gets stuck. It can run actions, commands and/or open files",
},
{
required: [],
Expand Down