mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-10 13:07:25 +00:00
change tests
This commit is contained in:
parent
fd3c37a7ee
commit
89503c278d
2 changed files with 1 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ const getPlatform = (os?: string): string => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getBaseUrl = (platform: string, version: string): string => {
|
const getBaseUrl = (platform: string, version: string): string => {
|
||||||
|
console.log(`------https://cli.codecov.io/${platform}/${getUploaderName(platform)}`);
|
||||||
return `https://cli.codecov.io/${platform}/${getUploaderName(platform)}`;
|
return `https://cli.codecov.io/${platform}/${getUploaderName(platform)}`;
|
||||||
// https://cli.codecov.io/v0.1.1_test/linux/codecov
|
// https://cli.codecov.io/v0.1.1_test/linux/codecov
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ try {
|
||||||
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||||
// Image will be stored at this path
|
// Image will be stored at this path
|
||||||
const filePath = fs.createWriteStream(filename);
|
const filePath = fs.createWriteStream(filename);
|
||||||
console.log('filePath', filePath);
|
|
||||||
res.pipe(filePath);
|
res.pipe(filePath);
|
||||||
filePath
|
filePath
|
||||||
.on('error', (err) => {
|
.on('error', (err) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue