@@ -128,6 +128,7 @@ jobs:
128
128
strategy :
129
129
matrix :
130
130
node-version : [21.x]
131
+ mongodb-version : [7.0]
131
132
steps :
132
133
- uses : actions/checkout@v4
133
134
with :
@@ -137,6 +138,12 @@ jobs:
137
138
with :
138
139
node-version : ${{ matrix.node-version }}
139
140
141
+ - name : Start MongoDB ${{ matrix.mongodb-version }} Replica Set
142
+ uses :
supercharge/[email protected]
143
+ with :
144
+ mongodb-version : ${{ matrix.mongodb-version }}
145
+ mongodb-replica-set : rs
146
+
140
147
- run : sudo apt update
141
148
- run : sudo apt -y install libkrb5-dev
142
149
- run : cp config.json.example config.json
@@ -147,18 +154,18 @@ jobs:
147
154
CI : true
148
155
NODE_ENV : test
149
156
150
- - run : npm run mongo:dev -- -d
157
+ # - run: npm run mongo:dev -- -d
151
158
- run : npm run test:api:unit
152
159
env :
153
160
REQUIRES_SERVER=true : true
154
161
155
- - run : npm run mongo:dev:down
162
+ # - run: npm run mongo:dev:down
156
163
api-v3-integration :
157
164
runs-on : ubuntu-latest
158
165
strategy :
159
166
matrix :
160
167
node-version : [21.x]
161
-
168
+ mongodb-version : [7.0]
162
169
steps :
163
170
- uses : actions/checkout@v4
164
171
with :
@@ -167,6 +174,11 @@ jobs:
167
174
uses : actions/setup-node@v4
168
175
with :
169
176
node-version : ${{ matrix.node-version }}
177
+ - name : Start MongoDB ${{ matrix.mongodb-version }} Replica Set
178
+ uses :
supercharge/[email protected]
179
+ with :
180
+ mongodb-version : ${{ matrix.mongodb-version }}
181
+ mongodb-replica-set : rs
170
182
171
183
- run : sudo apt update
172
184
- run : sudo apt -y install libkrb5-dev
@@ -178,17 +190,18 @@ jobs:
178
190
CI : true
179
191
NODE_ENV : test
180
192
181
- - run : npm run mongo:dev -- -d
193
+ # - run: npm run mongo:dev -- -d
182
194
- run : npm run test:api-v3:integration
183
195
env :
184
196
REQUIRES_SERVER=true : true
185
197
186
- - run : npm run mongo:dev:down
198
+ # - run: npm run mongo:dev:down
187
199
api-v4-integration :
188
200
runs-on : ubuntu-latest
189
201
strategy :
190
202
matrix :
191
203
node-version : [21.x]
204
+ mongodb-version : [7.0]
192
205
193
206
steps :
194
207
- uses : actions/checkout@v4
@@ -198,6 +211,11 @@ jobs:
198
211
uses : actions/setup-node@v4
199
212
with :
200
213
node-version : ${{ matrix.node-version }}
214
+ - name : Start MongoDB ${{ matrix.mongodb-version }} Replica Set
215
+ uses :
supercharge/[email protected]
216
+ with :
217
+ mongodb-version : ${{ matrix.mongodb-version }}
218
+ mongodb-replica-set : rs
201
219
202
220
- run : sudo apt update
203
221
- run : sudo apt -y install libkrb5-dev
@@ -208,13 +226,13 @@ jobs:
208
226
env :
209
227
CI : true
210
228
NODE_ENV : test
211
- - run : npm run mongo:dev -- -d
229
+ # - run: npm run mongo:dev -- -d
212
230
- run : npm run test:api-v4:integration
213
231
env :
214
232
REQUIRES_SERVER=true : true
215
233
216
234
217
- - run : npm run mongo:dev:down
235
+ # - run: npm run mongo:dev:down
218
236
client-unit :
219
237
runs-on : ubuntu-latest
220
238
strategy :
0 commit comments