Fix: custom hook files and test

pull/437/head
Frostebite 2022-10-07 23:19:19 +01:00
parent 9ea10d0d3a
commit 9fe9233a6a
5 changed files with 5 additions and 3 deletions

1
dist/index.js vendored
View File

@ -4259,6 +4259,7 @@ class RemoteClient {
const fileContentsObject = yaml_1.default.parse(fileContents.toString());
if (fileContentsObject.hook === hookLifecycle) {
remote_client_logger_1.RemoteClientLogger.log(`Active Hook File ${file} contents: ${fileContents}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(fileContents);
}
}
});

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
hook: after-build
run: |
after-build test!
echo "after-build test!"

View File

@ -1,3 +1,3 @@
hook: before-build
run: |
before-build test!
echo "before-build test!!"

View File

@ -136,6 +136,7 @@ export class RemoteClient {
const fileContentsObject = YAML.parse(fileContents.toString());
if (fileContentsObject.hook === hookLifecycle) {
RemoteClientLogger.log(`Active Hook File ${file} contents: ${fileContents}`);
await CloudRunnerSystem.Run(fileContents);
}
}
}