How to start MongoDB as a service on Windows runners #30083
-
I run a cross-platform test suite in CI relying on a MongoDB server being available. I understand that MongoDB comes preinstalled in both Linux and Windows images. However, I could find no documentation at all on how to make use of that server. Since I need to start the My first attempt was to use the I thus wanted to use GitHub Actions’ Considering that MongoDB comes preinstalled as a service on the runner image, I tried to use How can I start the preinstalled MongoDB service on a Windows GitHub Actions runner? Is there any other way for me to run a Mongo server in the background on Windows in a GitHub Actions workflow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You may want to check this issue. - run: |
Set-Service mongodb -StartupType Automatic
Start-Service -Name MongoDB from this comment actions/runner-images#5949 (comment) |
Beta Was this translation helpful? Give feedback.
You may want to check this issue.
from this comment actions/runner-images#5949 (comment)