Skip to content

Commit 59427b6

Browse files
committed
try gh action again
1 parent 16aed7f commit 59427b6

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/test.yml

+25-7
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ jobs:
128128
strategy:
129129
matrix:
130130
node-version: [21.x]
131+
mongodb-version: [7.0]
131132
steps:
132133
- uses: actions/checkout@v4
133134
with:
@@ -137,6 +138,12 @@ jobs:
137138
with:
138139
node-version: ${{ matrix.node-version }}
139140

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+
140147
- run: sudo apt update
141148
- run: sudo apt -y install libkrb5-dev
142149
- run: cp config.json.example config.json
@@ -147,18 +154,18 @@ jobs:
147154
CI: true
148155
NODE_ENV: test
149156

150-
- run: npm run mongo:dev -- -d
157+
#- run: npm run mongo:dev -- -d
151158
- run: npm run test:api:unit
152159
env:
153160
REQUIRES_SERVER=true: true
154161

155-
- run: npm run mongo:dev:down
162+
#- run: npm run mongo:dev:down
156163
api-v3-integration:
157164
runs-on: ubuntu-latest
158165
strategy:
159166
matrix:
160167
node-version: [21.x]
161-
168+
mongodb-version: [7.0]
162169
steps:
163170
- uses: actions/checkout@v4
164171
with:
@@ -167,6 +174,11 @@ jobs:
167174
uses: actions/setup-node@v4
168175
with:
169176
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
170182

171183
- run: sudo apt update
172184
- run: sudo apt -y install libkrb5-dev
@@ -178,17 +190,18 @@ jobs:
178190
CI: true
179191
NODE_ENV: test
180192

181-
- run: npm run mongo:dev -- -d
193+
#- run: npm run mongo:dev -- -d
182194
- run: npm run test:api-v3:integration
183195
env:
184196
REQUIRES_SERVER=true: true
185197

186-
- run: npm run mongo:dev:down
198+
#- run: npm run mongo:dev:down
187199
api-v4-integration:
188200
runs-on: ubuntu-latest
189201
strategy:
190202
matrix:
191203
node-version: [21.x]
204+
mongodb-version: [7.0]
192205

193206
steps:
194207
- uses: actions/checkout@v4
@@ -198,6 +211,11 @@ jobs:
198211
uses: actions/setup-node@v4
199212
with:
200213
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
201219

202220
- run: sudo apt update
203221
- run: sudo apt -y install libkrb5-dev
@@ -208,13 +226,13 @@ jobs:
208226
env:
209227
CI: true
210228
NODE_ENV: test
211-
- run: npm run mongo:dev -- -d
229+
#- run: npm run mongo:dev -- -d
212230
- run: npm run test:api-v4:integration
213231
env:
214232
REQUIRES_SERVER=true: true
215233

216234

217-
- run: npm run mongo:dev:down
235+
#- run: npm run mongo:dev:down
218236
client-unit:
219237
runs-on: ubuntu-latest
220238
strategy:

0 commit comments

Comments
 (0)