1
1
name : ci
2
2
on :
3
3
push :
4
- branches : [ release, alpha, beta, next-major ]
4
+ branches : [ release, alpha, beta ]
5
5
pull_request :
6
- branches :
7
- - ' **'
6
+ branches : [ release, alpha, beta ]
8
7
env :
9
- NODE_VERSION : 16.14.2
8
+ NODE_VERSION : 18.1.0
10
9
PARSE_SERVER_TEST_TIMEOUT : 20000
11
10
jobs :
11
+ check-code-analysis :
12
+ name : Code Analysis
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ actions : read
16
+ contents : read
17
+ security-events : write
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ language : [ 'javascript' ]
22
+ steps :
23
+ - name : Checkout repository
24
+ uses : actions/checkout@v3
25
+ - name : Initialize CodeQL
26
+ uses : github/codeql-action/init@v2
27
+ with :
28
+ languages : ${{ matrix.language }}
29
+ source-root : src
30
+ - name : Perform CodeQL Analysis
31
+ uses : github/codeql-action/analyze@v2
12
32
check-ci :
13
33
name : Node Engine Check
14
34
timeout-minutes : 15
@@ -101,47 +121,42 @@ jobs:
101
121
strategy :
102
122
matrix :
103
123
include :
104
- - name : MongoDB 5.2, ReplicaSet, WiredTiger
105
- MONGODB_VERSION : 5.2.1
106
- MONGODB_TOPOLOGY : replicaset
107
- MONGODB_STORAGE_ENGINE : wiredTiger
108
- NODE_VERSION : 14.19.1
109
- - name : MongoDB 5.1 , ReplicaSet, WiredTiger
110
- MONGODB_VERSION : 5.1.1
124
+ - name : MongoDB 4.0, Standalone, MMAPv1
125
+ MONGODB_VERSION : 4.0.28
126
+ MONGODB_TOPOLOGY : standalone
127
+ MONGODB_STORAGE_ENGINE : mmapv1
128
+ NODE_VERSION : 18.1.0
129
+ - name : MongoDB 4.0 , ReplicaSet, WiredTiger
130
+ MONGODB_VERSION : 4.0.28
111
131
MONGODB_TOPOLOGY : replicaset
112
132
MONGODB_STORAGE_ENGINE : wiredTiger
113
- NODE_VERSION : 14.19.1
114
- - name : MongoDB 5.0 , ReplicaSet, WiredTiger
115
- MONGODB_VERSION : 5.0.6
133
+ NODE_VERSION : 18.1.0
134
+ - name : MongoDB 4.2 , ReplicaSet, WiredTiger
135
+ MONGODB_VERSION : 4.2.19
116
136
MONGODB_TOPOLOGY : replicaset
117
137
MONGODB_STORAGE_ENGINE : wiredTiger
118
- NODE_VERSION : 16.14.2
138
+ NODE_VERSION : 18.1.0
119
139
- name : MongoDB 4.4, ReplicaSet, WiredTiger
120
140
MONGODB_VERSION : 4.4.13
121
141
MONGODB_TOPOLOGY : replicaset
122
142
MONGODB_STORAGE_ENGINE : wiredTiger
123
- NODE_VERSION : 16.14.2
124
- - name : MongoDB 4.2 , ReplicaSet, WiredTiger
125
- MONGODB_VERSION : 4.2.19
143
+ NODE_VERSION : 18.1.0
144
+ - name : MongoDB 5 , ReplicaSet, WiredTiger
145
+ MONGODB_VERSION : 5.3.2
126
146
MONGODB_TOPOLOGY : replicaset
127
147
MONGODB_STORAGE_ENGINE : wiredTiger
128
- NODE_VERSION : 16.14.2
129
- - name : MongoDB 4.0 , ReplicaSet, WiredTiger
130
- MONGODB_VERSION : 4 .0.28
148
+ NODE_VERSION : 18.1.0
149
+ - name : MongoDB 6 , ReplicaSet, WiredTiger
150
+ MONGODB_VERSION : 6 .0.2
131
151
MONGODB_TOPOLOGY : replicaset
132
152
MONGODB_STORAGE_ENGINE : wiredTiger
133
- NODE_VERSION : 16.14.2
134
- - name : MongoDB 4.0, Standalone, MMAPv1
135
- MONGODB_VERSION : 4.0.28
136
- MONGODB_TOPOLOGY : standalone
137
- MONGODB_STORAGE_ENGINE : mmapv1
138
- NODE_VERSION : 16.14.2
153
+ NODE_VERSION : 18.1.0
139
154
- name : Redis Cache
140
155
PARSE_SERVER_TEST_CACHE : redis
141
156
MONGODB_VERSION : 4.4.13
142
157
MONGODB_TOPOLOGY : standalone
143
158
MONGODB_STORAGE_ENGINE : wiredTiger
144
- NODE_VERSION : 16.14.2
159
+ NODE_VERSION : 18.1.0
145
160
- name : Node 12
146
161
MONGODB_VERSION : 4.4.13
147
162
MONGODB_TOPOLOGY : standalone
@@ -152,16 +167,16 @@ jobs:
152
167
MONGODB_TOPOLOGY : standalone
153
168
MONGODB_STORAGE_ENGINE : wiredTiger
154
169
NODE_VERSION : 14.19.1
155
- - name : Node 17
170
+ - name : Node 16
156
171
MONGODB_VERSION : 4.4.13
157
172
MONGODB_TOPOLOGY : standalone
158
173
MONGODB_STORAGE_ENGINE : wiredTiger
159
- NODE_VERSION : 17.9.0
160
- - name : Node 18
174
+ NODE_VERSION : 16.14.2
175
+ - name : Node 17
161
176
MONGODB_VERSION : 4.4.13
162
177
MONGODB_TOPOLOGY : standalone
163
178
MONGODB_STORAGE_ENGINE : wiredTiger
164
- NODE_VERSION : 18.1 .0
179
+ NODE_VERSION : 17.9 .0
165
180
fail-fast : false
166
181
name : ${{ matrix.name }}
167
182
timeout-minutes : 15
@@ -171,7 +186,7 @@ jobs:
171
186
image : redis
172
187
ports :
173
188
- 6379:6379
174
- env :
189
+ env :
175
190
MONGODB_VERSION : ${{ matrix.MONGODB_VERSION }}
176
191
MONGODB_TOPOLOGY : ${{ matrix.MONGODB_TOPOLOGY }}
177
192
MONGODB_STORAGE_ENGINE : ${{ matrix.MONGODB_STORAGE_ENGINE }}
@@ -205,22 +220,28 @@ jobs:
205
220
include :
206
221
- name : PostgreSQL 11, PostGIS 3.0
207
222
POSTGRES_IMAGE : postgis/postgis:11-3.0
208
- NODE_VERSION : 16.14.2
223
+ NODE_VERSION : 18.1.0
209
224
- name : PostgreSQL 11, PostGIS 3.1
210
225
POSTGRES_IMAGE : postgis/postgis:11-3.1
211
- NODE_VERSION : 16.14.2
226
+ NODE_VERSION : 18.1.0
212
227
- name : PostgreSQL 11, PostGIS 3.2
213
228
POSTGRES_IMAGE : postgis/postgis:11-3.2
214
- NODE_VERSION : 16.14.2
215
- - name : PostgreSQL 12, PostGIS 3.2
216
- POSTGRES_IMAGE : postgis/postgis:12-3.2
217
- NODE_VERSION : 16.14.2
218
- - name : PostgreSQL 13, PostGIS 3.2
219
- POSTGRES_IMAGE : postgis/postgis:13-3.2
220
- NODE_VERSION : 16.14.2
221
- - name : PostgreSQL 14, PostGIS 3.2
222
- POSTGRES_IMAGE : postgis/postgis:14-3.2
223
- NODE_VERSION : 16.14.2
229
+ NODE_VERSION : 18.1.0
230
+ - name : PostgreSQL 11, PostGIS 3.3
231
+ POSTGRES_IMAGE : postgis/postgis:11-3.3
232
+ NODE_VERSION : 18.1.0
233
+ - name : PostgreSQL 12, PostGIS 3.3
234
+ POSTGRES_IMAGE : postgis/postgis:12-3.3
235
+ NODE_VERSION : 18.1.0
236
+ - name : PostgreSQL 13, PostGIS 3.3
237
+ POSTGRES_IMAGE : postgis/postgis:13-3.3
238
+ NODE_VERSION : 18.1.0
239
+ - name : PostgreSQL 14, PostGIS 3.3
240
+ POSTGRES_IMAGE : postgis/postgis:14-3.3
241
+ NODE_VERSION : 18.1.0
242
+ - name : PostgreSQL 15, PostGIS 3.3
243
+ POSTGRES_IMAGE : postgis/postgis:15-3.3
244
+ NODE_VERSION : 18.1.0
224
245
fail-fast : false
225
246
name : ${{ matrix.name }}
226
247
timeout-minutes : 15
@@ -267,3 +288,6 @@ jobs:
267
288
env :
268
289
CI : true
269
290
- run : bash <(curl -s https://codecov.io/bash)
291
+ concurrency :
292
+ group : ${{ github.workflow }}-${{ github.ref }}
293
+ cancel-in-progress : true
0 commit comments