Skip to content

Commit

Permalink
Update CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil authored Sep 25, 2022
1 parent 1a82df2 commit df146af
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,23 @@ jobs:
matrix:
node-version: [16.x, 18.x]

services:
mongodb:
image: mongo
options: >-
--health-cmd mongo
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 27017:27017

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Start Docker for Mongodb
run: docker run -d -p 27017:27017 mongo
- name: Run tests
run: |
npm i
Expand Down

0 comments on commit df146af

Please sign in to comment.