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.12.1
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
15
- runs-on : ubuntu-20.04
35
+ runs-on : ubuntu-latest
16
36
steps :
17
37
- uses : actions/checkout@v2
18
38
- name : Use Node.js ${{ matrix.NODE_VERSION }}
33
53
check-lint :
34
54
name : Lint
35
55
timeout-minutes : 15
36
- runs-on : ubuntu-20.04
56
+ runs-on : ubuntu-latest
37
57
steps :
38
58
- uses : actions/checkout@v2
39
59
- name : Use Node.js ${{ matrix.NODE_VERSION }}
53
73
check-circular :
54
74
name : Circular Dependencies
55
75
timeout-minutes : 5
56
- runs-on : ubuntu-20.04
76
+ runs-on : ubuntu-latest
57
77
steps :
58
78
- uses : actions/checkout@v2
59
79
- name : Use Node.js ${{ matrix.NODE_VERSION }}
73
93
check-docker :
74
94
name : Docker Build
75
95
timeout-minutes : 15
76
- runs-on : ubuntu-20.04
96
+ runs-on : ubuntu-latest
77
97
steps :
78
98
- name : Checkout repository
79
99
uses : actions/checkout@v2
90
110
check-lock-file-version :
91
111
name : NPM Lock File Version
92
112
timeout-minutes : 5
93
- runs-on : ubuntu-20.04
113
+ runs-on : ubuntu-latest
94
114
steps :
95
115
- uses : actions/checkout@v2
96
116
- name : Check NPM lock file version
@@ -101,83 +121,53 @@ 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
111
- MONGODB_TOPOLOGY : replicaset
112
- MONGODB_STORAGE_ENGINE : wiredTiger
113
- NODE_VERSION : 14.19.1
114
- - name : MongoDB 5.0, ReplicaSet, WiredTiger
115
- MONGODB_VERSION : 5.0.6
124
+ - name : MongoDB 4.2, ReplicaSet
125
+ MONGODB_VERSION : 4.2.19
116
126
MONGODB_TOPOLOGY : replicaset
117
- MONGODB_STORAGE_ENGINE : wiredTiger
118
- NODE_VERSION : 16.14.2
119
- - name : MongoDB 4.4, ReplicaSet, WiredTiger
127
+ NODE_VERSION : 18.12.1
128
+ - name : MongoDB 4.4, ReplicaSet
120
129
MONGODB_VERSION : 4.4.13
121
130
MONGODB_TOPOLOGY : replicaset
122
- MONGODB_STORAGE_ENGINE : wiredTiger
123
- NODE_VERSION : 16.14.2
124
- - name : MongoDB 4.2, ReplicaSet, WiredTiger
125
- MONGODB_VERSION : 4.2.19
131
+ NODE_VERSION : 18.12.1
132
+ - name : MongoDB 5, ReplicaSet
133
+ MONGODB_VERSION : 5.3.2
126
134
MONGODB_TOPOLOGY : replicaset
127
- MONGODB_STORAGE_ENGINE : wiredTiger
128
- NODE_VERSION : 16.14.2
129
- - name : MongoDB 4.0, ReplicaSet, WiredTiger
130
- MONGODB_VERSION : 4.0.28
135
+ NODE_VERSION : 18.12.1
136
+ - name : MongoDB 6, ReplicaSet
137
+ MONGODB_VERSION : 6.0.2
131
138
MONGODB_TOPOLOGY : replicaset
132
- 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
139
+ NODE_VERSION : 18.12.1
139
140
- name : Redis Cache
140
141
PARSE_SERVER_TEST_CACHE : redis
141
142
MONGODB_VERSION : 4.4.13
142
143
MONGODB_TOPOLOGY : standalone
143
- MONGODB_STORAGE_ENGINE : wiredTiger
144
- NODE_VERSION : 16.14.2
145
- - name : Node 12
146
- MONGODB_VERSION : 4.4.13
147
- MONGODB_TOPOLOGY : standalone
148
- MONGODB_STORAGE_ENGINE : wiredTiger
149
- NODE_VERSION : 12.22.11
144
+ NODE_VERSION : 18.12.1
150
145
- name : Node 14
151
146
MONGODB_VERSION : 4.4.13
152
147
MONGODB_TOPOLOGY : standalone
153
- MONGODB_STORAGE_ENGINE : wiredTiger
154
- NODE_VERSION : 14.19.1
155
- - name : Node 17
148
+ NODE_VERSION : 14.21.1
149
+ - name : Node 16
156
150
MONGODB_VERSION : 4.4.13
157
151
MONGODB_TOPOLOGY : standalone
158
- MONGODB_STORAGE_ENGINE : wiredTiger
159
- NODE_VERSION : 17.9.0
160
- - name : Node 18
161
- MONGODB_VERSION : 4.4.13
162
- MONGODB_TOPOLOGY : standalone
163
- MONGODB_STORAGE_ENGINE : wiredTiger
164
- NODE_VERSION : 18.1.0
152
+ NODE_VERSION : 16.18.1
165
153
fail-fast : false
166
154
name : ${{ matrix.name }}
167
155
timeout-minutes : 15
168
- runs-on : ubuntu-20.04
156
+ runs-on : ubuntu-latest
169
157
services :
170
158
redis :
171
159
image : redis
172
160
ports :
173
161
- 6379:6379
174
- env :
162
+ env :
175
163
MONGODB_VERSION : ${{ matrix.MONGODB_VERSION }}
176
164
MONGODB_TOPOLOGY : ${{ matrix.MONGODB_TOPOLOGY }}
177
165
MONGODB_STORAGE_ENGINE : ${{ matrix.MONGODB_STORAGE_ENGINE }}
178
166
PARSE_SERVER_TEST_CACHE : ${{ matrix.PARSE_SERVER_TEST_CACHE }}
179
167
NODE_VERSION : ${{ matrix.NODE_VERSION }}
180
168
steps :
169
+ - name : Fix usage of insecure GitHub protocol
170
+ run : sudo git config --system url."https://github".insteadOf "git://github"
181
171
- uses : actions/checkout@v2
182
172
- name : Use Node.js ${{ matrix.NODE_VERSION }}
183
173
uses : actions/setup-node@v2
@@ -203,26 +193,32 @@ jobs:
203
193
include :
204
194
- name : PostgreSQL 11, PostGIS 3.0
205
195
POSTGRES_IMAGE : postgis/postgis:11-3.0
206
- NODE_VERSION : 16.14.2
196
+ NODE_VERSION : 18.12.1
207
197
- name : PostgreSQL 11, PostGIS 3.1
208
198
POSTGRES_IMAGE : postgis/postgis:11-3.1
209
- NODE_VERSION : 16.14.2
199
+ NODE_VERSION : 18.12.1
210
200
- name : PostgreSQL 11, PostGIS 3.2
211
201
POSTGRES_IMAGE : postgis/postgis:11-3.2
212
- NODE_VERSION : 16.14.2
213
- - name : PostgreSQL 12, PostGIS 3.2
214
- POSTGRES_IMAGE : postgis/postgis:12-3.2
215
- NODE_VERSION : 16.14.2
216
- - name : PostgreSQL 13, PostGIS 3.2
217
- POSTGRES_IMAGE : postgis/postgis:13-3.2
218
- NODE_VERSION : 16.14.2
219
- - name : PostgreSQL 14, PostGIS 3.2
220
- POSTGRES_IMAGE : postgis/postgis:14-3.2
221
- NODE_VERSION : 16.14.2
202
+ NODE_VERSION : 18.12.1
203
+ - name : PostgreSQL 11, PostGIS 3.3
204
+ POSTGRES_IMAGE : postgis/postgis:11-3.3
205
+ NODE_VERSION : 18.12.1
206
+ - name : PostgreSQL 12, PostGIS 3.3
207
+ POSTGRES_IMAGE : postgis/postgis:12-3.3
208
+ NODE_VERSION : 18.12.1
209
+ - name : PostgreSQL 13, PostGIS 3.3
210
+ POSTGRES_IMAGE : postgis/postgis:13-3.3
211
+ NODE_VERSION : 18.12.1
212
+ - name : PostgreSQL 14, PostGIS 3.3
213
+ POSTGRES_IMAGE : postgis/postgis:14-3.3
214
+ NODE_VERSION : 18.12.1
215
+ - name : PostgreSQL 15, PostGIS 3.3
216
+ POSTGRES_IMAGE : postgis/postgis:15-3.3
217
+ NODE_VERSION : 18.12.1
222
218
fail-fast : false
223
219
name : ${{ matrix.name }}
224
220
timeout-minutes : 15
225
- runs-on : ubuntu-20.04
221
+ runs-on : ubuntu-latest
226
222
services :
227
223
redis :
228
224
image : redis
@@ -265,3 +261,6 @@ jobs:
265
261
env :
266
262
CI : true
267
263
- run : bash <(curl -s https://codecov.io/bash)
264
+ concurrency :
265
+ group : ${{ github.workflow }}-${{ github.ref }}
266
+ cancel-in-progress : true
0 commit comments