mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-13 09:30:05 +00:00
tsting
This commit is contained in:
parent
bb6f970126
commit
63bb20cf1f
7 changed files with 53 additions and 175 deletions
11
src/index.ts
11
src/index.ts
|
|
@ -21,7 +21,12 @@ try {
|
|||
const {execArgs, options, failCi, os, uploaderVersion, verbose} = buildExec();
|
||||
const platform = getPlatform(os);
|
||||
|
||||
const filename = path.join( __dirname, getUploaderName(platform));
|
||||
const filename = path.join( __dirname, 'hi');
|
||||
const filename2 = path.join( __dirname, getUploaderName(platform));
|
||||
const execArgs2 = [];
|
||||
execArgs2.push(
|
||||
'--help',
|
||||
);
|
||||
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||
// Image will be stored at this path
|
||||
const filePath = fs.createWriteStream(filename);
|
||||
|
|
@ -50,14 +55,14 @@ try {
|
|||
}
|
||||
});
|
||||
};
|
||||
await exec.exec(filename, execArgs, options)
|
||||
await exec.exec(filename2, execArgs2)
|
||||
.catch((err) => {
|
||||
setFailure(
|
||||
`Codecov: Failed to properly upload: ${err.message}`,
|
||||
failCi,
|
||||
);
|
||||
}).then(() => {
|
||||
unlink();
|
||||
//unlink();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue