better named tests and log local-docker params
parent
ffc984be4b
commit
5353abd16e
|
|
@ -3651,11 +3651,11 @@ class LocalDockerCloudRunner {
|
||||||
}
|
}
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
const entrypointFilePath = `ls && cd ./.. && ls && ${workspace}/start.sh`;
|
const entrypointFilePath = `${workspace}/start.sh`;
|
||||||
fs_1.writeFileSync(entrypointFilePath, commands, {
|
fs_1.writeFileSync(entrypointFilePath, commands, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, entrypointFilePath, content, {
|
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `ls && cd ./.. && ls && ${entrypointFilePath}`, content, {
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
myOutput += data.toString();
|
myOutput += data.toString();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -84,21 +84,28 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
|
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
const entrypointFilePath = `ls && cd ./.. && ls && ${workspace}/start.sh`;
|
const entrypointFilePath = `${workspace}/start.sh`;
|
||||||
writeFileSync(entrypointFilePath, commands, {
|
writeFileSync(entrypointFilePath, commands, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
|
|
||||||
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, entrypointFilePath, content, {
|
await Docker.run(
|
||||||
listeners: {
|
image,
|
||||||
stdout: (data: Buffer) => {
|
{ workspace, actionFolder, ...this.buildParameters },
|
||||||
myOutput += data.toString();
|
false,
|
||||||
},
|
`ls && cd ./.. && ls && ${entrypointFilePath}`,
|
||||||
stderr: (data: Buffer) => {
|
content,
|
||||||
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
{
|
||||||
|
listeners: {
|
||||||
|
stdout: (data: Buffer) => {
|
||||||
|
myOutput += data.toString();
|
||||||
|
},
|
||||||
|
stderr: (data: Buffer) => {
|
||||||
|
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
);
|
||||||
|
|
||||||
return myOutput;
|
return myOutput;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue