Skip to content

Commit

Permalink
Update send-test-report.js to not send (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
hensmi-amazon authored May 3, 2024
1 parent 6201933 commit d1f502d
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/script/send-test-report.js
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);
// });
// }

0 comments on commit d1f502d

Please sign in to comment.