cache test should explicitly check cache key from build 1 is included in results log

pull/461/head
Frostebite 2022-09-22 23:38:25 +01:00
parent 870b6eabf8
commit 095539b0e2
3 changed files with 14 additions and 21 deletions

6
dist/index.js vendored
View File

@ -3651,11 +3651,11 @@ class LocalDockerCloudRunner {
}
let myOutput = '';
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
const entrypointFilePath = `${workspace}/start.sh`;
fs_1.writeFileSync(entrypointFilePath, commands, {
const entrypointFilePath = `start.sh`;
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
flag: 'w',
});
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"ls && ls ./.. && ${entrypointFilePath}"`, content, {
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, entrypointFilePath, content, {
listeners: {
stdout: (data) => {
myOutput += data.toString();

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -84,28 +84,21 @@ class LocalDockerCloudRunner implements ProviderInterface {
let myOutput = '';
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
const entrypointFilePath = `${workspace}/start.sh`;
writeFileSync(entrypointFilePath, commands, {
const entrypointFilePath = `start.sh`;
writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
flag: 'w',
});
await Docker.run(
image,
{ workspace, actionFolder, ...this.buildParameters },
false,
`"ls && ls ./.. && ${entrypointFilePath}"`,
content,
{
listeners: {
stdout: (data: Buffer) => {
myOutput += data.toString();
},
stderr: (data: Buffer) => {
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
},
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, entrypointFilePath, content, {
listeners: {
stdout: (data: Buffer) => {
myOutput += data.toString();
},
stderr: (data: Buffer) => {
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
},
},
);
});
return myOutput;
}