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

Feature/validate#34

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 11 commits intomasterfromfeature/validate
Jun 13, 2020
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
load solution commits
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
@ShMcK
ShMcK committedJun 13, 2020
commit6f1c7fffe7431f8e3855ae62cbcd99546c1b6c57
33 changes: 24 additions & 9 deletionssrc/validate.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -80,7 +80,7 @@ async function validate(args: string[]) {
for (const level of skeleton.levels) {
if (level.setup) {
// load commits
if (level.setup.commits) {
if (commits[`${level.id}`]) {
console.log(`Loading ${level.id} commits...`);
await cherryPick(commits[level.id]);
}
Expand All@@ -93,21 +93,36 @@ async function validate(args: string[]) {
// steps
if (level.steps) {
for (const step of level.steps) {
console.log(step);
// load commits
if (step.setup.commits) {
console.log(`Loading ${step.id} commits...`);
await cherryPick(commits[step.id]);
const stepSetupCommits = commits[`${step.id}Q`];
if (stepSetupCommits) {
console.info(`Loading ${step.id} setup commits...`);
await cherryPick(stepSetupCommits);
}
// run commands
if (step.setup.commands) {
console.log(`Running ${step.id} commands...`);
console.info(`Running ${step.id} setup commands...`);
await runCommands(step.setup.commands);
}

// run test
console.info("Running test");
await runTest();
// ignore runnning tests on steps with no solution
if (step.solution) {
// run test
console.info("Running test");
// await runTest();
}

const stepSolutionCommits = commits[`${step.id}A`];
if (stepSolutionCommits) {
console.info(`Loading ${step.id} solution commits...`);
await cherryPick(stepSolutionCommits);
}

// run commands
if (step?.solution?.commands) {
console.info(`Running ${step.id} solution commands...`);
await runCommands(step.solution.commands);
}
}
}
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp