Skip to content

Commit

Permalink
Create node.js.yml
Browse files Browse the repository at this point in the history
added integrattion for node js and mongo
  • Loading branch information
deepanshu-yadav authored Nov 14, 2023
1 parent 8e18037 commit ec77e63
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
mongodb-version: ['4.2', '4.4', '5.0', '6.0']

steps:
- name: Git checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- run: npm install

- run: npm test
env:
CI: true

0 comments on commit ec77e63

Please sign in to comment.