Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit authored Sep 8, 2023
1 parent 083802f commit 074c820
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,12 @@ jobs:
- name: Install dependencies
run: yarn

- name: Install MongoDB
run: |
sudo apt-get update
sudo apt-get install -y mongodb
- name: Start MongoDB Replica Set
run: |
sudo mongod --replSet "rs" &
sleep 5
mongo --eval "rs.initiate()"
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: rs
mongodb-port: 27017

- name: Restore MongoDB Test Data
run: mongorestore -d "mainstayX" ./dbTest
Expand Down

0 comments on commit 074c820

Please sign in to comment.