We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a36ef56 commit 111ce37Copy full SHA for 111ce37
.github/workflows/test.yml
@@ -0,0 +1,40 @@
1
+name: Run tests
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ paths:
8
+ - 'src/**'
9
+ - 'test/**'
10
+ - 'package.json'
11
+ - 'package-lock.json'
12
+ workflow_dispatch:
13
14
+jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ matrix:
19
+ node-version: [14.x, 16.x]
20
+ mongodb-version: ['4.2', '4.4']
21
22
+ steps:
23
+ - name: Git checkout
24
+ uses: actions/checkout@v2
25
26
+ - name: Use Node.js ${{ matrix.node-version }}
27
+ uses: actions/setup-node@v2
28
+ with:
29
+ node-version: ${{ matrix.node-version }}
30
31
+ - name: Start MongoDB
32
+ uses: supercharge/[email protected]
33
34
+ mongodb-version: ${{ matrix.mongodb-version }}
35
36
+ - run: npm install
37
38
+ - run: npm test
39
+ env:
40
+ CI: true
0 commit comments