Skip to content

Commit

Permalink
Start pre-installed MongoDB service on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiSG committed Aug 23, 2022
1 parent fbbcbd9 commit bf33f47
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ jobs:
git config --global user.email 'bot@opentermsarchive.org'
git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Start MongoDB
- name: Start MongoDB (UNIX)
if: runner.os != 'Windows'
run: |
mkdir /tmp/test-database
mongod --dbpath /tmp/test-database --logpath /tmp/mongodb-log &
- name: Start MongoDB (Windows)
if: runner.os == 'Windows'
run: |
Set-Service MongoDB -StartupType Automatic
Start-Service -Name MongoDB
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npm test

Expand Down

0 comments on commit bf33f47

Please sign in to comment.