Newman is a command line Collection Runner for Postman. It allows you to run and test a Postman Collection directly from the command line, or in this case, from a github action.
- name: Checkout
  uses: actions/checkout@v1
- name: Run API Tests
  id: run-newman
  uses: anthonyvscode/newman-action@v1
  with:
    collection: collection.json
    reporters: cli
- name: Output summary to console
  run: echo ${{ steps.run-newman.outputs.summary }}- name: Checkout
  uses: actions/checkout@v1
- name: Run API Tests
  id: run-newman
  uses: anthonyvscode/newman-action@v1
  with:
    collection: http://example.com/collection.json
    reporters: cli
- name: Output summary to console
  run: echo ${{ steps.run-newman.outputs.summary }}See Postman API for full functionality.
- name: Checkout
  uses: actions/checkout@v1
- name: Run API Tests
  id: run-newman
  uses: anthonyvscode/newman-action@v1
  with:
    apiKey: ${{ secrets.postmanApiKey }}
    collection: bab22df3-0221-0251-5849-b34eab2bfa49
    reporters: cli
- name: Output summary to console
  run: echo ${{ steps.run-newman.outputs.summary }}- None
 
This action is able to set all parameters listed in the Newman API Reference documentation
apiKey(required if collection_uuid is set) - Postman API keycollection(required) - Path to the JSON, URL or a collection_uuid to query on the postman hosted apienvironment(optional) - Path to the JSON, URL or an environment_uuid to query on the postman hosted apiglobals(optional) - Path to the JSON or URL where the global JSON is hostediterationCount(optional, default value:1) - Number of iterations to run on the collectioniterationData(optional) - Path to the JSON or CSV file or URL to be used as data source when running multiple iterations on a collection.folder(optional) - Name/ID of folders to run instead of entire collectionworkingDir(optional, default value:.) - Path to be used as working directoryinsecureFileRead(optional, default value:true) - Allow reading files outside of working directorytimeout(optional, default value:Infinity) - Time to wait for the collection run to completetimeoutRequest(optional, default value:Infinity) - Time to wait for scripts to return a responsetimeoutScript(optional, default value:Infinity) - Time to wait for scripts to return a responsedelayRequest(optional, default value:0) - Time to wait between subsequent requestsignoreRedirects(optional) - Follow 3xx responsesinsecure(optional) - Disable SSL verification and allow self-signed SSLbail(optional) - Stop collection run gracefully on errorsuppressExitCode(optional) - Always exit cleanlyreporters(optional) - Reporter to usereporter(optional) - Reporter optionscolor(optional, default value:auto) - Modify colored CLI outputsslClientCert(optional) - Path to public client certificatesslClientKey(optional) - Path to secret client key filesslClientPassphrase(optional) - Secret client key passphrase
summary_full(JSON object) - Full summary as returned from the run.summary(JSON object) - condensed summary consisting of these summary items only:
Collection.Info.Name
Collection.Info.Id
Run.Stats.Requests.*
Run.Stats.Assertions.*
Run.Failures[n].Parent.Name
Run.Failures[n].Parent.Id
Run.Failures[n].Source.Name
Run.Failures[n].Error.Message
Run.Failures[n].Error.Test
