Skip to content

Commit f047a97

Browse files
committed
ci: add workflow for 5.x
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
1 parent 2e36cb0 commit f047a97

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- 5.x
7+
pull_request:
8+
branches:
9+
- 5.x
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [10, 12, 14]
17+
mongodb-version: [4.4] # the latest stable version
18+
19+
steps:
20+
- name: Git checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Start MongoDB
29+
uses: supercharge/mongodb-github-action@1.3.0
30+
with:
31+
mongodb-version: ${{ matrix.mongodb-version }}
32+
33+
- run: npm install
34+
- run: npm test

0 commit comments

Comments
 (0)