-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update send-test-report.js to not send (#2867)
- Loading branch information
1 parent
6201933
commit d1f502d
Showing
1 changed file
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
// Send test report is a minimal script that makes a HTTP POST call to a webhook to send a slack message. | ||
// For example, this script passes results of the browser compatibility report to the webhook so that the amazon-chime-js-sdk team can be notified of the results. | ||
|
||
const axios = require('axios'); | ||
|
||
var myArgs = process.argv.slice(2); | ||
|
||
axios.post(myArgs[0], { | ||
'github_workflow_url': myArgs[1], | ||
'browser_compatibility_tests_status': myArgs[2].toUpperCase() | ||
}, res => { | ||
console.log(res); | ||
}, err => { | ||
console.log(err); | ||
}); | ||
// Disabled until a kind soul fixes these tests | ||
|
||
// const axios = require('axios'); | ||
|
||
// var myArgs = process.argv.slice(2); | ||
|
||
// if (myArgs[2].toUpperCase() !== 'SUCCESS') { | ||
// axios.post(myArgs[0], { | ||
// 'github_workflow_url': myArgs[1], | ||
// 'browser_compatibility_tests_status': myArgs[2].toUpperCase() | ||
// }).then(res => { | ||
// console.log(res.data); | ||
// }).catch(err => { | ||
// console.log(err); | ||
// }); | ||
// } |