supercharge / mongodb-github-action

Use MongoDB in GitHub Actions
MIT License
222 stars 46 forks source link

How should I call the URL of my connection to mongodb in my code? #18

Closed cristian-programmer closed 3 years ago

cristian-programmer commented 3 years ago

Hello, first thank you very much for this contribution I have a little doubt, I use mongo in my integration tests, but I don't know how I should declare my connection string in my source code so that I can access the database.

marcuspoehls commented 3 years ago

@cristian-programmer Hey, the MongoDB database provisioned in GitHub Actions is available on localhost:27017. Did you try this URL as your connection string?

cristian-programmer commented 3 years ago

Not. I will try, thank you very much, I have something different. :)

marcuspoehls commented 3 years ago

@cristian-programmer Hey, did you solve your problem?

cristian-programmer commented 3 years ago

@marcuspoehls Hi, thanks, this working now.

marcuspoehls commented 3 years ago

@cristian-programmer Awesome!