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.
2 parents 48f731c + 8c2225b commit e90edefCopy full SHA for e90edef
.github/workflows/build.yml
@@ -0,0 +1,38 @@
1
+name: build
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
10
11
+jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
15
+ strategy:
16
+ matrix:
17
+ node-version: [ 'lts/*' ]
18
+ mongodb-version: [latest]
19
20
+ steps:
21
+ - name: Checkout repository
22
+ uses: actions/checkout@v3
23
24
+ - name: Set up Node.js
25
+ uses: actions/setup-node@v3
26
+ with:
27
+ node-version: ${{ matrix.node-version }}
28
29
+ - name: Start MongoDB
30
+ uses: supercharge/mongodb-github-action@1.11.0
31
32
+ mongodb-version: ${{ matrix.mongodb-version }}
33
34
+ - name: Install dependencies
35
+ run: npm install
36
37
+ - name: Run tests
38
+ run: npm test
0 commit comments