extract lib in caching flow

pull/496/head
Frostebite 2023-02-13 16:08:44 +00:00
parent 465973ecbf
commit a6dbd44f4f
4 changed files with 17 additions and 13 deletions

13
dist/index.js generated vendored
View File

@ -885,19 +885,21 @@ class CloudRunnerOptions {
// Utility Parameters // Utility Parameters
// ### ### ### // ### ### ###
static get cloudRunnerDebug() { static get cloudRunnerDebug() {
return CloudRunnerOptions.getInput(`cloudRunnerTests`) || CloudRunnerOptions.getInput(`cloudRunnerDebug`) || false; return (CloudRunnerOptions.getInput(`cloudRunnerTests`) === `true` ||
CloudRunnerOptions.getInput(`cloudRunnerDebug`) === `true` ||
false);
} }
static get cloudRunnerDebugTree() { static get cloudRunnerDebugTree() {
return CloudRunnerOptions.getInput(`cloudRunnerDebugTree`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugTree`) === `true` || false;
} }
static get cloudRunnerDebugEnv() { static get cloudRunnerDebugEnv() {
return CloudRunnerOptions.getInput(`cloudRunnerDebugEnv`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugEnv`) === `true` || false;
} }
static get cloudRunnerDebugSkipLFS() { static get cloudRunnerDebugSkipLFS() {
return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipLFS`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipLFS`) === `true` || false;
} }
static get cloudRunnerDebugSkipCache() { static get cloudRunnerDebugSkipCache() {
return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipCache`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipCache`) === `true` || false;
} }
static get watchCloudRunnerToEnd() { static get watchCloudRunnerToEnd() {
if (CloudRunnerOptions.asyncCloudRunner) { if (CloudRunnerOptions.asyncCloudRunner) {
@ -4441,7 +4443,6 @@ class Caching {
process.chdir(startPath); process.chdir(startPath);
throw error; throw error;
} }
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${destinationFolder}`);
process.chdir(startPath); process.chdir(startPath);
}); });
} }

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -232,19 +232,23 @@ class CloudRunnerOptions {
// ### ### ### // ### ### ###
static get cloudRunnerDebug(): boolean { static get cloudRunnerDebug(): boolean {
return CloudRunnerOptions.getInput(`cloudRunnerTests`) || CloudRunnerOptions.getInput(`cloudRunnerDebug`) || false; return (
CloudRunnerOptions.getInput(`cloudRunnerTests`) === `true` ||
CloudRunnerOptions.getInput(`cloudRunnerDebug`) === `true` ||
false
);
} }
static get cloudRunnerDebugTree(): boolean { static get cloudRunnerDebugTree(): boolean {
return CloudRunnerOptions.getInput(`cloudRunnerDebugTree`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugTree`) === `true` || false;
} }
static get cloudRunnerDebugEnv(): boolean { static get cloudRunnerDebugEnv(): boolean {
return CloudRunnerOptions.getInput(`cloudRunnerDebugEnv`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugEnv`) === `true` || false;
} }
static get cloudRunnerDebugSkipLFS(): boolean { static get cloudRunnerDebugSkipLFS(): boolean {
return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipLFS`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipLFS`) === `true` || false;
} }
static get cloudRunnerDebugSkipCache(): boolean { static get cloudRunnerDebugSkipCache(): boolean {
return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipCache`) || false; return CloudRunnerOptions.getInput(`cloudRunnerDebugSkipCache`) === `true` || false;
} }
static get watchCloudRunnerToEnd(): boolean { static get watchCloudRunnerToEnd(): boolean {

View File

@ -178,7 +178,6 @@ export class Caching {
process.chdir(startPath); process.chdir(startPath);
throw error; throw error;
} }
await CloudRunnerSystem.Run(`tree ${destinationFolder}`);
process.chdir(startPath); process.chdir(startPath);
} }