Skip to content

Commit 5408af1

Browse files
committed
Include mongodb in CI
1 parent 40d8ef4 commit 5408af1

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

.github/workflows/nodejs.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,27 @@ on: [push]
44

55
jobs:
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
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"mongo": { "url": "mongodb://localhost:27017/test" }
3+
}

0 commit comments

Comments
 (0)