newman-action icon indicating copy to clipboard operation
newman-action copied to clipboard

`environment` does not accept a UUID

Open dadamsGS opened this issue 4 years ago • 2 comments

I am trying to run Newman in a GH Action using the same process as an example in the README:

- uses: actions/checkout@master
- uses: matt-ball/newman-action@master
  with:
    apiKey: ${{ secrets.postmanApiKey }}
    collection: ${{ env.COLLECTION }}
    environment: ${{ env.DEV }}

When I run the test in GH Actions I get the message:

Warning: Bad object passed in config!
Error: Newman run failed! Error: could not load environment
  ENOENT: no such file or directory, open '<my UUID>'

Am I missing something?

dadamsGS avatar Feb 17 '22 15:02 dadamsGS

I tried to use a URL in the environment variable but that returned the same message.

You are able to use a URL in the --environment variable in the CLI (https://github.com/postmanlabs/newman#using-newman-with-the-postman-api)

dadamsGS avatar Feb 17 '22 16:02 dadamsGS

image

I see this working - can you share the env ID so I can check we're matching it properly? Feel free to change a single character with a like for like char if you're not wanting to share the exact ID

matt-ball avatar Feb 22 '22 12:02 matt-ball