Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-ball committed Aug 28, 2019
1 parent 3e4b0e5 commit 5d6ba73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ async function run () {

function runNewman (options) {
newman.run(options).on('done', (err, summary) => {
console.log('in done')
console.log('err', err)
console.log('summaryerr', summary.error)
if (err || summary.error) {
core.setFailed(err || summary.error)
core.setFailed('Newman run failed!' + (err || summary.error))
}
})
}

0 comments on commit 5d6ba73

Please sign in to comment.