File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66jobs :
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
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 : |
You can’t perform that action at this time.
0 commit comments