11name : ci
22on :
33 push :
4- branches : [ release, alpha, beta, next-major ]
4+ branches : [ release, alpha, beta ]
55 pull_request :
6- branches :
7- - ' **'
6+ branches : [ release, alpha, beta ]
87env :
9- NODE_VERSION : 16.14.2
8+ NODE_VERSION : 18.1.0
109 PARSE_SERVER_TEST_TIMEOUT : 20000
1110jobs :
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
1232 check-ci :
1333 name : Node Engine Check
1434 timeout-minutes : 15
@@ -101,47 +121,42 @@ jobs:
101121 strategy :
102122 matrix :
103123 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
111131 MONGODB_TOPOLOGY : replicaset
112132 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
116136 MONGODB_TOPOLOGY : replicaset
117137 MONGODB_STORAGE_ENGINE : wiredTiger
118- NODE_VERSION : 16.14.2
138+ NODE_VERSION : 18.1.0
119139 - name : MongoDB 4.4, ReplicaSet, WiredTiger
120140 MONGODB_VERSION : 4.4.13
121141 MONGODB_TOPOLOGY : replicaset
122142 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
126146 MONGODB_TOPOLOGY : replicaset
127147 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
131151 MONGODB_TOPOLOGY : replicaset
132152 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
139154 - name : Redis Cache
140155 PARSE_SERVER_TEST_CACHE : redis
141156 MONGODB_VERSION : 4.4.13
142157 MONGODB_TOPOLOGY : standalone
143158 MONGODB_STORAGE_ENGINE : wiredTiger
144- NODE_VERSION : 16.14.2
159+ NODE_VERSION : 18.1.0
145160 - name : Node 12
146161 MONGODB_VERSION : 4.4.13
147162 MONGODB_TOPOLOGY : standalone
@@ -152,16 +167,16 @@ jobs:
152167 MONGODB_TOPOLOGY : standalone
153168 MONGODB_STORAGE_ENGINE : wiredTiger
154169 NODE_VERSION : 14.19.1
155- - name : Node 17
170+ - name : Node 16
156171 MONGODB_VERSION : 4.4.13
157172 MONGODB_TOPOLOGY : standalone
158173 MONGODB_STORAGE_ENGINE : wiredTiger
159- NODE_VERSION : 17.9.0
160- - name : Node 18
174+ NODE_VERSION : 16.14.2
175+ - name : Node 17
161176 MONGODB_VERSION : 4.4.13
162177 MONGODB_TOPOLOGY : standalone
163178 MONGODB_STORAGE_ENGINE : wiredTiger
164- NODE_VERSION : 18.1 .0
179+ NODE_VERSION : 17.9 .0
165180 fail-fast : false
166181 name : ${{ matrix.name }}
167182 timeout-minutes : 15
@@ -171,7 +186,7 @@ jobs:
171186 image : redis
172187 ports :
173188 - 6379:6379
174- env :
189+ env :
175190 MONGODB_VERSION : ${{ matrix.MONGODB_VERSION }}
176191 MONGODB_TOPOLOGY : ${{ matrix.MONGODB_TOPOLOGY }}
177192 MONGODB_STORAGE_ENGINE : ${{ matrix.MONGODB_STORAGE_ENGINE }}
@@ -205,22 +220,28 @@ jobs:
205220 include :
206221 - name : PostgreSQL 11, PostGIS 3.0
207222 POSTGRES_IMAGE : postgis/postgis:11-3.0
208- NODE_VERSION : 16.14.2
223+ NODE_VERSION : 18.1.0
209224 - name : PostgreSQL 11, PostGIS 3.1
210225 POSTGRES_IMAGE : postgis/postgis:11-3.1
211- NODE_VERSION : 16.14.2
226+ NODE_VERSION : 18.1.0
212227 - name : PostgreSQL 11, PostGIS 3.2
213228 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
224245 fail-fast : false
225246 name : ${{ matrix.name }}
226247 timeout-minutes : 15
@@ -267,3 +288,6 @@ jobs:
267288 env :
268289 CI : true
269290 - run : bash <(curl -s https://codecov.io/bash)
291+ concurrency :
292+ group : ${{ github.workflow }}-${{ github.ref }}
293+ cancel-in-progress : true
0 commit comments