Github action api testing

I’m in the process of creating a github action that will run some automated API tests using newman against pull requests. Are there any examples of how to accomplish this? I’ve been looking for some example actions covering this scenario but haven’t had any luck. Is it possible to have it run tests against the deployed PR app on Heroku?

Thanks,
Paul

@paulsullivanjr,

You can try creating a composite run steps action to run the Newman CLI in your workflow.
In the composite action, the following steps should be contained mainly:

. . .
runs:
  using: "composite"
  steps: 
    - name: Installation Newman
      shell: bash
      run: npm install -g newman

    - name: Run Newman CLI
      shell: bash
      run: |
        --- some Newman command lines ---
1 Like