-
Notifications
You must be signed in to change notification settings - Fork 81
32 lines (29 loc) · 975 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI
on: [push, pull_request]
jobs:
test:
name: Node ${{ matrix.node }}, Mongo ${{ matrix.mongodb-version }}, on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16, 18, 20]
mongodb-version: [4.0, 4.2, 4.4, 5.0, 6.0]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js v${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Start MongoDB v${{ matrix.mongodb-version }}
uses: supercharge/mongodb-github-action@1.8.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: test-rs
# ignoring scripts to not install mongodb-memory-server
- run: npm ci --ignore-scripts
- run: npm run ci
- run: npm run ci-mongoose5
- run: npm run ci-mongoose6
- run: npm run ci-mongoose7
- run: npm run ci-mongoose8