File tree Expand file tree Collapse file tree 2 files changed +20
-14
lines changed
src/apps/mooc_backend/config Expand file tree Collapse file tree 2 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,27 @@ on: [push]
44
55jobs :
66 build :
7-
87 runs-on : ubuntu-latest
98
109 strategy :
1110 matrix :
1211 node-version : [8.x, 10.x, 12.x]
12+ mongodb-version : [3.6, 4.0, 4.2]
1313
1414 steps :
15- - uses : actions/checkout@v1
16- - name : Use Node.js ${{ matrix.node-version }}
17- uses : actions/setup-node@v1
18- with :
19- node-version : ${{ matrix.node-version }}
20- - name : npm install, build, and test
21- run : |
22- npm install
23- npm run build --if-present
24- npm test
25- env :
26- CI : true
15+ - uses : actions/checkout@v1
16+ - name : Use Node.js ${{ matrix.node-version }}
17+ uses : actions/setup-node@v1
18+ with :
19+ node-version : ${{ matrix.node-version }}
20+ - name : Launch MongoDB
21+ uses : wbari/start-mongoDB@v0.2
22+ with :
23+ mongoDBVersion : ${{ matrix.mongodb-version }}
24+ - name : npm install, build, and test
25+ run : |
26+ npm install
27+ npm run build --if-present
28+ npm test
29+ env :
30+ CI : true
Original file line number Diff line number Diff line change 1- {}
1+ {
2+ "mongo" : { "url" : " mongodb://localhost:27017/test" }
3+ }
You can’t perform that action at this time.
0 commit comments