forked from OptimalBits/node_acl
-
Notifications
You must be signed in to change notification settings - Fork 10
108 lines (88 loc) · 2.72 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: CI
on: [push, pull_request]
jobs:
test_memory:
name: Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['16', '18', '20']
steps:
- uses: actions/checkout@v2
- name: Setup Node.js v${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run test_memory
env:
CI: true
test_redis:
name: Node ${{ matrix.node }}, Redis ${{ matrix.redis-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['16', '18', '20']
redis-version: [5, 6, 7]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js v${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Start Redis v${{ matrix.redis-version }}
uses: supercharge/redis-github-action@1.1.0
with:
redis-version: ${{ matrix.redis-version }}
- run: npm install
- run: npm run test_redis
env:
CI: true
test_mongo:
name: Node ${{ matrix.node }}, MongoDB ${{ matrix.mongodb-version }}. Multi collection (default)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['16', '18', '20']
mongodb-version: [6, 7]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js v${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Start MongoDB v${{ matrix.mongodb-version }}
uses: supercharge/mongodb-github-action@1.2.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm install
- run: npm install mongodb@6
- run: npm run test_mongo
- run: npm install mongodb@5
- run: npm run test_mongo
test_mongo_single:
name: Node ${{ matrix.node }}, MongoDB ${{ matrix.mongodb-version }}. Single collection
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['16', '18', '20']
mongodb-version: [6, 7]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js v${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Start MongoDB v${{ matrix.mongodb-version }}
uses: supercharge/mongodb-github-action@1.2.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm install
- run: npm install mongodb@6
- run: npm run test_mongo_single
- run: npm install mongodb@5
- run: npm run test_mongo_single