showing results for - "node js github actions with mongodb"
Rocky
12 Mar 2016
1name: Run tests
2
3on: [push]
4
5jobs:
6  build:
7    runs-on: ubuntu-latest
8    strategy:
9      matrix:
10        node-version: [12.x, 14.x]
11        mongodb-version: [4.0, 4.2, 4.4]
12
13    steps:
14    - name: Git checkout
15      uses: actions/checkout@v2
16
17    - name: Use Node.js ${{ matrix.node-version }}
18      uses: actions/setup-node@v1
19      with:
20        node-version: ${{ matrix.node-version }}
21
22    - name: Start MongoDB
23      uses: supercharge/mongodb-github-action@1.3.0
24      with:
25        mongodb-version: ${{ matrix.mongodb-version }}
26
27    - run: npm install
28
29    - run: npm test
30      env:
31        CI: true