Skip to content

Commit

Permalink
check failures array
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-ball committed Aug 28, 2019
1 parent fce3e70 commit 048cd77
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ async function run () {

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

0 comments on commit 048cd77

Please sign in to comment.