Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6f1c7ff

Browse files
committed
load solution commits
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent9df45b1 commit6f1c7ff

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

‎src/validate.ts

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async function validate(args: string[]) {
8080
for(constlevelofskeleton.levels){
8181
if(level.setup){
8282
// load commits
83-
if(level.setup.commits){
83+
if(commits[`${level.id}`]){
8484
console.log(`Loading${level.id} commits...`);
8585
awaitcherryPick(commits[level.id]);
8686
}
@@ -93,21 +93,36 @@ async function validate(args: string[]) {
9393
// steps
9494
if(level.steps){
9595
for(conststepoflevel.steps){
96-
console.log(step);
9796
// load commits
98-
if(step.setup.commits){
99-
console.log(`Loading${step.id} commits...`);
100-
awaitcherryPick(commits[step.id]);
97+
conststepSetupCommits=commits[`${step.id}Q`];
98+
if(stepSetupCommits){
99+
console.info(`Loading${step.id} setup commits...`);
100+
awaitcherryPick(stepSetupCommits);
101101
}
102102
// run commands
103103
if(step.setup.commands){
104-
console.log(`Running${step.id} commands...`);
104+
console.info(`Running${step.id} setup commands...`);
105105
awaitrunCommands(step.setup.commands);
106106
}
107107

108-
// run test
109-
console.info("Running test");
110-
awaitrunTest();
108+
// ignore runnning tests on steps with no solution
109+
if(step.solution){
110+
// run test
111+
console.info("Running test");
112+
// await runTest();
113+
}
114+
115+
conststepSolutionCommits=commits[`${step.id}A`];
116+
if(stepSolutionCommits){
117+
console.info(`Loading${step.id} solution commits...`);
118+
awaitcherryPick(stepSolutionCommits);
119+
}
120+
121+
// run commands
122+
if(step?.solution?.commands){
123+
console.info(`Running${step.id} solution commands...`);
124+
awaitrunCommands(step.solution.commands);
125+
}
111126
}
112127
}
113128
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp