diff --git a/README.md b/README.md index 447b0a71..ed2b52bd 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The latest version of your collection and/or environment is available through [P - uses: actions/checkout@master - uses: matt-ball/newman-action@master with: - postmanApiKey: ${{ secrets.postmanApiKey }} + apiKey: ${{ secrets.postmanApiKey }} collection: 5922408-c22ef764-b464-424c-8702-750343478723 environment: 5922408-228c7edd-fc15-4f68-9665-a35d7df6945b ``` diff --git a/index.js b/index.js index 9203f2a6..08708286 100644 --- a/index.js +++ b/index.js @@ -75,9 +75,19 @@ function split (str) { } function runNewman (options) { - newman.run(options).on('done', (err, summary) => { - if (!options.suppressExitCode && (err || summary.run.failures.length)) { - core.setFailed('Newman run failed!' + (err || '')) - } - }) + console.log(options) + newman.run(options) + .on('beforeRequest', (err, args) => { + console.log(err) + }) + .on('request', (err, args) => { + console.log(err) + }) + .on('done', (err, summary) => { + console.log(err) + console.log(summary.error) + if (!options.suppressExitCode && (err || summary.run.failures.length)) { + core.setFailed('Newman run failed!' + (err || '')) + } + }) } diff --git a/package-lock.json b/package-lock.json index c4ffef13..0ad92d10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "newman-action", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a48c5554..59a315e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "newman-action", - "version": "0.3.0", + "version": "0.3.1", "description": "Run Postman collections with Newman as a GitHub Action", "main": "dist/index.js", "repository": {