Skip to content

Commit 2d49042

Browse files
committed
fix validate
Signed-off-by: shmck <[email protected]>
1 parent e4f5c19 commit 2d49042

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coderoad/cli",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A CLI to build the configuration file for Coderoad Tutorials",
55
"keywords": [
66
"coderoad",

Diff for: src/validate.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function validate(args: string[]) {
104104
for (const step of level.steps) {
105105
console.info(`** ${step.id}`);
106106
// load commits
107-
const stepSetupCommits = commits[`${step.id}Q`];
107+
const stepSetupCommits = commits[`${step.id}:T`];
108108
if (stepSetupCommits) {
109109
console.info(`--- Loading setup commits...`);
110110
await cherryPick(stepSetupCommits);
@@ -115,7 +115,7 @@ async function validate(args: string[]) {
115115
await runCommands(step.setup.commands);
116116
}
117117

118-
const stepSolutionCommits = commits[`${step.id}A`];
118+
const stepSolutionCommits = commits[`${step.id}:S`];
119119
const hasSolution = step.solution || stepSolutionCommits;
120120

121121
// ignore running tests on steps with no solution
@@ -167,7 +167,6 @@ async function validate(args: string[]) {
167167
console.error(e.message);
168168
} finally {
169169
// cleanup
170-
console.log("options.clean", options.clean);
171170
if (options.clean) {
172171
await fs.emptyDir(tmpDir);
173172
}

0 commit comments

Comments
 (0)