Skip to content

Commit 610485b

Browse files
committed
update ci
1 parent 0bf6f00 commit 610485b

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@ on:
66
jobs:
77
lint-and-test:
88
runs-on: ubuntu-latest
9-
services:
10-
mongo:
11-
image: mongo:7
12-
ports:
13-
- 27017:27017
14-
options: >-
15-
--health-cmd "echo \"try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'localhost:27017'}]}) }\" | mongosh --port 27017 --quiet"
16-
--health-interval 5s
17-
--health-retries 30
18-
--health-start-interval 1s
19-
--health-start-period 0s
20-
--health-timeout 30s
21-
--name mongo
229
steps:
2310
- name: Checkout Code
2411
uses: actions/checkout@v5
@@ -35,6 +22,7 @@ jobs:
3522
# sed -i 's/^MONGO_URI=.*/MONGO_URI=mongodb:\/\/mongo:27017/' .env
3623
- name: Setup Mongo
3724
run: |
25+
docker run -d --name mongo -p 27017:27017 --replSet rs0
3826
docker exec mongo mongosh --eval "rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]});"
3927
- name: Configure Git
4028
run: |

0 commit comments

Comments
 (0)