1
1
name : ci
2
2
on :
3
3
push :
4
- branches : [ release, alpha, beta ]
4
+ branches : [ release* , alpha, beta ]
5
5
pull_request :
6
- branches : [ release, alpha, beta ]
6
+ branches : [ release* , alpha, beta ]
7
7
env :
8
- NODE_VERSION : 18.1 .0
8
+ NODE_VERSION : 19.3 .0
9
9
PARSE_SERVER_TEST_TIMEOUT : 20000
10
10
jobs :
11
11
check-code-analysis :
32
32
check-ci :
33
33
name : Node Engine Check
34
34
timeout-minutes : 15
35
- runs-on : ubuntu-20.04
35
+ runs-on : ubuntu-latest
36
36
steps :
37
37
- uses : actions/checkout@v2
38
38
- name : Use Node.js ${{ matrix.NODE_VERSION }}
53
53
check-lint :
54
54
name : Lint
55
55
timeout-minutes : 15
56
- runs-on : ubuntu-20.04
56
+ runs-on : ubuntu-latest
57
57
steps :
58
58
- uses : actions/checkout@v2
59
59
- name : Use Node.js ${{ matrix.NODE_VERSION }}
@@ -70,10 +70,31 @@ jobs:
70
70
- name : Install dependencies
71
71
run : npm ci
72
72
- run : npm run lint
73
+ check-definitions :
74
+ name : Check Definitions
75
+ timeout-minutes : 5
76
+ runs-on : ubuntu-18.04
77
+ steps :
78
+ - uses : actions/checkout@v2
79
+ - name : Use Node.js ${{ matrix.NODE_VERSION }}
80
+ uses : actions/setup-node@v2
81
+ with :
82
+ node-version : ${{ matrix.node-version }}
83
+ - name : Cache Node.js modules
84
+ uses : actions/cache@v2
85
+ with :
86
+ path : ~/.npm
87
+ key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
88
+ restore-keys : |
89
+ ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
90
+ - name : Install dependencies
91
+ run : npm ci
92
+ - name : CI Definitions Check
93
+ run : npm run ci:definitionsCheck
73
94
check-circular :
74
95
name : Circular Dependencies
75
96
timeout-minutes : 5
76
- runs-on : ubuntu-20.04
97
+ runs-on : ubuntu-latest
77
98
steps :
78
99
- uses : actions/checkout@v2
79
100
- name : Use Node.js ${{ matrix.NODE_VERSION }}
93
114
check-docker :
94
115
name : Docker Build
95
116
timeout-minutes : 15
96
- runs-on : ubuntu-20.04
117
+ runs-on : ubuntu-latest
97
118
steps :
98
119
- name : Checkout repository
99
120
uses : actions/checkout@v2
@@ -110,77 +131,54 @@ jobs:
110
131
check-lock-file-version :
111
132
name : NPM Lock File Version
112
133
timeout-minutes : 5
113
- runs-on : ubuntu-20.04
134
+ runs-on : ubuntu-latest
114
135
steps :
115
136
- uses : actions/checkout@v2
116
137
- name : Check NPM lock file version
117
138
uses : mansona/npm-lockfile-version@v1
118
139
with :
119
- version : 1
140
+ version : 2
120
141
check-mongo :
121
142
strategy :
122
143
matrix :
123
144
include :
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
131
- MONGODB_TOPOLOGY : replicaset
132
- MONGODB_STORAGE_ENGINE : wiredTiger
133
- NODE_VERSION : 18.1.0
134
- - name : MongoDB 4.2, ReplicaSet, WiredTiger
145
+ - name : MongoDB 4.2, ReplicaSet
135
146
MONGODB_VERSION : 4.2.19
136
147
MONGODB_TOPOLOGY : replicaset
137
- MONGODB_STORAGE_ENGINE : wiredTiger
138
- NODE_VERSION : 18.1.0
139
- - name : MongoDB 4.4, ReplicaSet, WiredTiger
148
+ NODE_VERSION : 19.3.0
149
+ - name : MongoDB 4.4, ReplicaSet
140
150
MONGODB_VERSION : 4.4.13
141
151
MONGODB_TOPOLOGY : replicaset
142
- MONGODB_STORAGE_ENGINE : wiredTiger
143
- NODE_VERSION : 18.1.0
144
- - name : MongoDB 5, ReplicaSet, WiredTiger
152
+ NODE_VERSION : 19.3.0
153
+ - name : MongoDB 5, ReplicaSet
145
154
MONGODB_VERSION : 5.3.2
146
155
MONGODB_TOPOLOGY : replicaset
147
- MONGODB_STORAGE_ENGINE : wiredTiger
148
- NODE_VERSION : 18.1.0
149
- - name : MongoDB 6, ReplicaSet, WiredTiger
156
+ NODE_VERSION : 19.3.0
157
+ - name : MongoDB 6, ReplicaSet
150
158
MONGODB_VERSION : 6.0.2
151
159
MONGODB_TOPOLOGY : replicaset
152
- MONGODB_STORAGE_ENGINE : wiredTiger
153
- NODE_VERSION : 18.1.0
160
+ NODE_VERSION : 19.3.0
154
161
- name : Redis Cache
155
162
PARSE_SERVER_TEST_CACHE : redis
156
163
MONGODB_VERSION : 4.4.13
157
164
MONGODB_TOPOLOGY : standalone
158
- MONGODB_STORAGE_ENGINE : wiredTiger
159
- NODE_VERSION : 18.1.0
160
- - name : Node 12
161
- MONGODB_VERSION : 4.4.13
162
- MONGODB_TOPOLOGY : standalone
163
- MONGODB_STORAGE_ENGINE : wiredTiger
164
- NODE_VERSION : 12.22.11
165
+ NODE_VERSION : 19.3.0
165
166
- name : Node 14
166
167
MONGODB_VERSION : 4.4.13
167
168
MONGODB_TOPOLOGY : standalone
168
- MONGODB_STORAGE_ENGINE : wiredTiger
169
- NODE_VERSION : 14.19.1
169
+ NODE_VERSION : 14.21.1
170
170
- name : Node 16
171
171
MONGODB_VERSION : 4.4.13
172
172
MONGODB_TOPOLOGY : standalone
173
- MONGODB_STORAGE_ENGINE : wiredTiger
174
- NODE_VERSION : 16.14.2
175
- - name : Node 17
173
+ NODE_VERSION : 16.18.1
174
+ - name : Node 18
176
175
MONGODB_VERSION : 4.4.13
177
176
MONGODB_TOPOLOGY : standalone
178
- MONGODB_STORAGE_ENGINE : wiredTiger
179
- NODE_VERSION : 17.9.0
177
+ NODE_VERSION : 18.12.1
180
178
fail-fast : false
181
179
name : ${{ matrix.name }}
182
180
timeout-minutes : 15
183
- runs-on : ubuntu-20.04
181
+ runs-on : ubuntu-latest
184
182
services :
185
183
redis :
186
184
image : redis
@@ -195,6 +193,9 @@ jobs:
195
193
steps :
196
194
- name : Fix usage of insecure GitHub protocol
197
195
run : sudo git config --system url."https://github".insteadOf "git://github"
196
+ - name : Fix git protocol for Node 14
197
+ if : ${{ startsWith(matrix.NODE_VERSION, '14.') }}
198
+ run : sudo git config --system url."https://github".insteadOf "ssh://git@github"
198
199
- uses : actions/checkout@v2
199
200
- name : Use Node.js ${{ matrix.NODE_VERSION }}
200
201
uses : actions/setup-node@v2
@@ -220,32 +221,32 @@ jobs:
220
221
include :
221
222
- name : PostgreSQL 11, PostGIS 3.0
222
223
POSTGRES_IMAGE : postgis/postgis:11-3.0
223
- NODE_VERSION : 18.1 .0
224
+ NODE_VERSION : 19.3 .0
224
225
- name : PostgreSQL 11, PostGIS 3.1
225
226
POSTGRES_IMAGE : postgis/postgis:11-3.1
226
- NODE_VERSION : 18.1 .0
227
+ NODE_VERSION : 19.3 .0
227
228
- name : PostgreSQL 11, PostGIS 3.2
228
229
POSTGRES_IMAGE : postgis/postgis:11-3.2
229
- NODE_VERSION : 18.1 .0
230
+ NODE_VERSION : 19.3 .0
230
231
- name : PostgreSQL 11, PostGIS 3.3
231
232
POSTGRES_IMAGE : postgis/postgis:11-3.3
232
- NODE_VERSION : 18.1 .0
233
+ NODE_VERSION : 19.3 .0
233
234
- name : PostgreSQL 12, PostGIS 3.3
234
235
POSTGRES_IMAGE : postgis/postgis:12-3.3
235
- NODE_VERSION : 18.1 .0
236
+ NODE_VERSION : 19.3 .0
236
237
- name : PostgreSQL 13, PostGIS 3.3
237
238
POSTGRES_IMAGE : postgis/postgis:13-3.3
238
- NODE_VERSION : 18.1 .0
239
+ NODE_VERSION : 19.3 .0
239
240
- name : PostgreSQL 14, PostGIS 3.3
240
241
POSTGRES_IMAGE : postgis/postgis:14-3.3
241
- NODE_VERSION : 18.1 .0
242
+ NODE_VERSION : 19.3 .0
242
243
- name : PostgreSQL 15, PostGIS 3.3
243
244
POSTGRES_IMAGE : postgis/postgis:15-3.3
244
- NODE_VERSION : 18.1 .0
245
+ NODE_VERSION : 19.3 .0
245
246
fail-fast : false
246
247
name : ${{ matrix.name }}
247
248
timeout-minutes : 15
248
- runs-on : ubuntu-20.04
249
+ runs-on : ubuntu-latest
249
250
services :
250
251
redis :
251
252
image : redis
0 commit comments