mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-12 14:07:25 +00:00
test after running request script
This commit is contained in:
parent
2a95d0b649
commit
224e1a7a68
1 changed files with 14 additions and 1 deletions
15
index.js
15
index.js
|
|
@ -26,7 +26,20 @@ try {
|
||||||
request('http://codecov.io/bash', (error, response, body) => {
|
request('http://codecov.io/bash', (error, response, body) => {
|
||||||
console.log('error:', error);
|
console.log('error:', error);
|
||||||
console.log('statusCode:', response && response.statusCode);
|
console.log('statusCode:', response && response.statusCode);
|
||||||
console.log('body:', body);
|
//console.log('body:', body);
|
||||||
|
|
||||||
|
const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}`
|
||||||
|
//const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}`
|
||||||
|
exec(command, (err, stdout, stderr) => {
|
||||||
|
if (err) {
|
||||||
|
//some err occurred
|
||||||
|
console.error(err)
|
||||||
|
} else {
|
||||||
|
// the *entire* stdout and stderr (buffered)
|
||||||
|
console.log(`stdout: ${stdout}`);
|
||||||
|
console.log(`stderr: ${stderr}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue