Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment does not accept a UUID #49

Open
dadamsGS opened this issue Feb 17, 2022 · 2 comments
Open

environment does not accept a UUID #49

dadamsGS opened this issue Feb 17, 2022 · 2 comments

Comments

@dadamsGS
Copy link

dadamsGS commented Feb 17, 2022

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
Copy link
Author

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)

@matt-ball
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants