Fix: custom hook files and test
parent
9ea10d0d3a
commit
9fe9233a6a
|
|
@ -4259,6 +4259,7 @@ class RemoteClient {
|
||||||
const fileContentsObject = yaml_1.default.parse(fileContents.toString());
|
const fileContentsObject = yaml_1.default.parse(fileContents.toString());
|
||||||
if (fileContentsObject.hook === hookLifecycle) {
|
if (fileContentsObject.hook === hookLifecycle) {
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`Active Hook File ${file} contents: ${fileContents}`);
|
remote_client_logger_1.RemoteClientLogger.log(`Active Hook File ${file} contents: ${fileContents}`);
|
||||||
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(fileContents);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,3 @@
|
||||||
hook: after-build
|
hook: after-build
|
||||||
run: |
|
run: |
|
||||||
after-build test!
|
echo "after-build test!"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
hook: before-build
|
hook: before-build
|
||||||
run: |
|
run: |
|
||||||
before-build test!
|
echo "before-build test!!"
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,7 @@ export class RemoteClient {
|
||||||
const fileContentsObject = YAML.parse(fileContents.toString());
|
const fileContentsObject = YAML.parse(fileContents.toString());
|
||||||
if (fileContentsObject.hook === hookLifecycle) {
|
if (fileContentsObject.hook === hookLifecycle) {
|
||||||
RemoteClientLogger.log(`Active Hook File ${file} contents: ${fileContents}`);
|
RemoteClientLogger.log(`Active Hook File ${file} contents: ${fileContents}`);
|
||||||
|
await CloudRunnerSystem.Run(fileContents);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue