better named tests and log local-docker params
parent
fead3024b6
commit
94851b231b
|
|
@ -3651,10 +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));
|
||||||
fs_1.writeFileSync('/github/workspace/start.sh', commands.replace('\n', ' && '), {
|
const entrypointFilePath = `${workspace}/start.sh`;
|
||||||
|
fs_1.writeFileSync(entrypointFilePath, commands.replace('\n', ' && '), {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, '/github/workspace/start.sh', content, {
|
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, 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,17 +84,12 @@ 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));
|
||||||
writeFileSync('/github/workspace/start.sh', commands.replace('\n', ' && '), {
|
const entrypointFilePath = `${workspace}/start.sh`;
|
||||||
|
writeFileSync(entrypointFilePath, commands.replace('\n', ' && '), {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
|
|
||||||
await Docker.run(
|
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, entrypointFilePath, content, {
|
||||||
image,
|
|
||||||
{ workspace, actionFolder, ...this.buildParameters },
|
|
||||||
false,
|
|
||||||
'/github/workspace/start.sh',
|
|
||||||
content,
|
|
||||||
{
|
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data: Buffer) => {
|
stdout: (data: Buffer) => {
|
||||||
myOutput += data.toString();
|
myOutput += data.toString();
|
||||||
|
|
@ -103,8 +98,7 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
);
|
|
||||||
|
|
||||||
return myOutput;
|
return myOutput;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue