When using GitHub Actions with the most recent method of running from CLI: “curl -o- “https://dl-cli.pstmn.io/install/linux64.sh” | sh”
How do I then take the results object and use it in later steps?
Using CLI locally I can use newman.run and then use the summary object to get key information like Pass or Fail or total Assertions.
All I need is for enough info to send either a Pass or Fail via Google Chat notificaitons once the run is done. Currently it only works when the collection passes, if it fails then I get no notification.
Something like this:
- name: Execute Nightly E2E Tests
continue-on-error: true
run: |
postman collection run "BuNcHoFnUmBeRs" -e "BuNcHoFnUmBeRs"
env:
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}
- name: Notify Google Chat On Completion
uses: Co-qn/google-chat-notification@v1
continue-on-error: true
with:
name: 'Postman E2E Tests:'
url: ${{ secrets.GCHAT_URL }}
status: ${{ job.status }}
Thanks,
Chris