better named tests and log local-docker params
parent
62949bc520
commit
6de6e1e1a2
|
|
@ -3625,20 +3625,23 @@ class LocalDockerCloudRunner {
|
||||||
this.buildParameters = buildParameters;
|
this.buildParameters = buildParameters;
|
||||||
}
|
}
|
||||||
runTask(buildGuid, image, commands, mountdir, workingdir, environment, secrets) {
|
runTask(buildGuid, image, commands, mountdir, workingdir, environment, secrets) {
|
||||||
|
var _a;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
cloud_runner_logger_1.default.log(buildGuid);
|
cloud_runner_logger_1.default.log(buildGuid);
|
||||||
cloud_runner_logger_1.default.log(commands);
|
cloud_runner_logger_1.default.log(commands);
|
||||||
const { workspace, actionFolder } = model_1.Action;
|
const { workspace, actionFolder } = model_1.Action;
|
||||||
const content = [];
|
const content = [];
|
||||||
for (const x of secrets) {
|
for (const x of secrets) {
|
||||||
content[x.EnvironmentVariable] = x.ParameterValue;
|
content.push({ name: x.EnvironmentVariable, value: x.ParameterValue });
|
||||||
}
|
}
|
||||||
for (const x of environment) {
|
for (const x of environment) {
|
||||||
content[x.name] = x.value;
|
content.push({ name: x.name, value: x.value });
|
||||||
|
}
|
||||||
|
if ((_a = this.buildParameters) === null || _a === void 0 ? void 0 : _a.cloudRunnerIntegrationTests) {
|
||||||
|
core.info(JSON.stringify(content, undefined, 4));
|
||||||
|
core.info(JSON.stringify(secrets, undefined, 4));
|
||||||
|
core.info(JSON.stringify(environment, undefined, 4));
|
||||||
}
|
}
|
||||||
core.info(JSON.stringify(content, undefined, 4));
|
|
||||||
core.info(JSON.stringify(secrets, undefined, 4));
|
|
||||||
core.info(JSON.stringify(environment, undefined, 4));
|
|
||||||
// eslint-disable-next-line unicorn/no-for-loop
|
// eslint-disable-next-line unicorn/no-for-loop
|
||||||
for (let index = 0; index < content.length; index++) {
|
for (let index = 0; index < content.length; index++) {
|
||||||
if (content[index] === undefined) {
|
if (content[index] === undefined) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -61,16 +61,19 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
CloudRunnerLogger.log(commands);
|
CloudRunnerLogger.log(commands);
|
||||||
|
|
||||||
const { workspace, actionFolder } = Action;
|
const { workspace, actionFolder } = Action;
|
||||||
const content = [];
|
const content: any[] = [];
|
||||||
for (const x of secrets) {
|
for (const x of secrets) {
|
||||||
content[x.EnvironmentVariable] = x.ParameterValue;
|
content.push({ name: x.EnvironmentVariable, value: x.ParameterValue });
|
||||||
}
|
}
|
||||||
for (const x of environment) {
|
for (const x of environment) {
|
||||||
content[x.name] = x.value;
|
content.push({ name: x.name, value: x.value });
|
||||||
}
|
}
|
||||||
core.info(JSON.stringify(content, undefined, 4));
|
if (this.buildParameters?.cloudRunnerIntegrationTests) {
|
||||||
core.info(JSON.stringify(secrets, undefined, 4));
|
core.info(JSON.stringify(content, undefined, 4));
|
||||||
core.info(JSON.stringify(environment, undefined, 4));
|
core.info(JSON.stringify(secrets, undefined, 4));
|
||||||
|
core.info(JSON.stringify(environment, undefined, 4));
|
||||||
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line unicorn/no-for-loop
|
// eslint-disable-next-line unicorn/no-for-loop
|
||||||
for (let index = 0; index < content.length; index++) {
|
for (let index = 0; index < content.length; index++) {
|
||||||
if (content[index] === undefined) {
|
if (content[index] === undefined) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue