1
1
name : ci
2
2
on :
3
3
push :
4
- branches :
5
- - master
4
+ branches : [ release, alpha, beta, next-major ]
6
5
pull_request :
7
6
branches :
8
7
- ' **'
9
8
env :
10
- NODE_VERSION : 14.17.6
9
+ NODE_VERSION : 16. 14.2
11
10
PARSE_SERVER_TEST_TIMEOUT : 20000
12
11
jobs :
13
12
check-ci :
14
- name : CI Self- Check
13
+ name : Node Engine Check
15
14
timeout-minutes : 15
16
- runs-on : ubuntu-18 .04
15
+ runs-on : ubuntu-20 .04
17
16
steps :
18
17
- uses : actions/checkout@v2
19
18
- name : Use Node.js ${{ matrix.NODE_VERSION }}
20
- uses : actions/setup-node@v1
19
+ uses : actions/setup-node@v2
21
20
with :
22
21
node-version : ${{ matrix.node-version }}
23
22
- name : Cache Node.js modules
@@ -29,23 +28,16 @@ jobs:
29
28
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
30
29
- name : Install dependencies
31
30
run : npm ci
32
- - name : CI Self-Check
33
- run : npm run ci:check
34
- check-changelog :
35
- name : Changelog
36
- timeout-minutes : 5
37
- runs-on : ubuntu-18.04
38
- steps :
39
- - uses : actions/checkout@v2
40
- - uses : dangoslen/changelog-enforcer@v2
31
+ - name : CI Node Engine Check
32
+ run : npm run ci:checkNodeEngine
41
33
check-lint :
42
34
name : Lint
43
35
timeout-minutes : 15
44
- runs-on : ubuntu-18 .04
36
+ runs-on : ubuntu-20 .04
45
37
steps :
46
38
- uses : actions/checkout@v2
47
39
- name : Use Node.js ${{ matrix.NODE_VERSION }}
48
- uses : actions/setup-node@v1
40
+ uses : actions/setup-node@v2
49
41
with :
50
42
node-version : ${{ matrix.node-version }}
51
43
- name : Cache Node.js modules
@@ -61,11 +53,11 @@ jobs:
61
53
check-circular :
62
54
name : Circular Dependencies
63
55
timeout-minutes : 5
64
- runs-on : ubuntu-18 .04
56
+ runs-on : ubuntu-20 .04
65
57
steps :
66
58
- uses : actions/checkout@v2
67
59
- name : Use Node.js ${{ matrix.NODE_VERSION }}
68
- uses : actions/setup-node@v1
60
+ uses : actions/setup-node@v2
69
61
with :
70
62
node-version : ${{ matrix.node-version }}
71
63
- name : Cache Node.js modules
@@ -80,16 +72,25 @@ jobs:
80
72
- run : npm run madge:circular
81
73
check-docker :
82
74
name : Docker Build
83
- timeout-minutes : 5
84
- runs-on : ubuntu-18 .04
75
+ timeout-minutes : 15
76
+ runs-on : ubuntu-20 .04
85
77
steps :
86
- - uses : actions/checkout@v2
78
+ - name : Checkout repository
79
+ uses : actions/checkout@v2
80
+ - name : Set up QEMU
81
+ id : qemu
82
+ uses : docker/setup-qemu-action@v1
83
+ - name : Set up Docker Buildx
84
+ uses : docker/setup-buildx-action@v1
87
85
- name : Build docker image
88
86
uses : docker/build-push-action@v2
87
+ with :
88
+ context : .
89
+ platforms : linux/amd64
89
90
check-lock-file-version :
90
91
name : NPM Lock File Version
91
92
timeout-minutes : 5
92
- runs-on : ubuntu-18 .04
93
+ runs-on : ubuntu-20 .04
93
94
steps :
94
95
- uses : actions/checkout@v2
95
96
- name : Check NPM lock file version
@@ -100,51 +101,71 @@ jobs:
100
101
strategy :
101
102
matrix :
102
103
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
103
114
- name : MongoDB 5.0, ReplicaSet, WiredTiger
104
- MONGODB_VERSION : 5.0.2
115
+ MONGODB_VERSION : 5.0.6
105
116
MONGODB_TOPOLOGY : replicaset
106
117
MONGODB_STORAGE_ENGINE : wiredTiger
107
- NODE_VERSION : 14.17.6
118
+ NODE_VERSION : 16. 14.2
108
119
- name : MongoDB 4.4, ReplicaSet, WiredTiger
109
- MONGODB_VERSION : 4.4.8
120
+ MONGODB_VERSION : 4.4.13
110
121
MONGODB_TOPOLOGY : replicaset
111
122
MONGODB_STORAGE_ENGINE : wiredTiger
112
- NODE_VERSION : 14.17.6
123
+ NODE_VERSION : 16. 14.2
113
124
- name : MongoDB 4.2, ReplicaSet, WiredTiger
114
- MONGODB_VERSION : 4.2.15
125
+ MONGODB_VERSION : 4.2.19
115
126
MONGODB_TOPOLOGY : replicaset
116
127
MONGODB_STORAGE_ENGINE : wiredTiger
117
- NODE_VERSION : 14.17.6
128
+ NODE_VERSION : 16. 14.2
118
129
- name : MongoDB 4.0, ReplicaSet, WiredTiger
119
- MONGODB_VERSION : 4.0.25
130
+ MONGODB_VERSION : 4.0.28
120
131
MONGODB_TOPOLOGY : replicaset
121
132
MONGODB_STORAGE_ENGINE : wiredTiger
122
- NODE_VERSION : 14.17.6
133
+ NODE_VERSION : 16. 14.2
123
134
- name : MongoDB 4.0, Standalone, MMAPv1
124
- MONGODB_VERSION : 4.0.25
135
+ MONGODB_VERSION : 4.0.28
125
136
MONGODB_TOPOLOGY : standalone
126
137
MONGODB_STORAGE_ENGINE : mmapv1
127
- NODE_VERSION : 14.17.6
138
+ NODE_VERSION : 16. 14.2
128
139
- name : Redis Cache
129
140
PARSE_SERVER_TEST_CACHE : redis
130
- MONGODB_VERSION : 4.4.8
141
+ MONGODB_VERSION : 4.4.13
131
142
MONGODB_TOPOLOGY : standalone
132
143
MONGODB_STORAGE_ENGINE : wiredTiger
133
- NODE_VERSION : 14.17.6
144
+ NODE_VERSION : 16. 14.2
134
145
- name : Node 12
135
- MONGODB_VERSION : 4.4.8
146
+ MONGODB_VERSION : 4.4.13
147
+ MONGODB_TOPOLOGY : standalone
148
+ MONGODB_STORAGE_ENGINE : wiredTiger
149
+ NODE_VERSION : 12.22.11
150
+ - name : Node 14
151
+ MONGODB_VERSION : 4.4.13
152
+ MONGODB_TOPOLOGY : standalone
153
+ MONGODB_STORAGE_ENGINE : wiredTiger
154
+ NODE_VERSION : 14.19.1
155
+ - name : Node 17
156
+ MONGODB_VERSION : 4.4.13
136
157
MONGODB_TOPOLOGY : standalone
137
158
MONGODB_STORAGE_ENGINE : wiredTiger
138
- NODE_VERSION : 12.22.6
139
- - name : Node 15
140
- MONGODB_VERSION : 4.4.8
159
+ NODE_VERSION : 17.9.0
160
+ - name : Node 18
161
+ MONGODB_VERSION : 4.4.13
141
162
MONGODB_TOPOLOGY : standalone
142
163
MONGODB_STORAGE_ENGINE : wiredTiger
143
- NODE_VERSION : 15.14 .0
164
+ NODE_VERSION : 18.1 .0
144
165
fail-fast : false
145
166
name : ${{ matrix.name }}
146
167
timeout-minutes : 15
147
- runs-on : ubuntu-18 .04
168
+ runs-on : ubuntu-20 .04
148
169
services :
149
170
redis :
150
171
image : redis
@@ -159,7 +180,7 @@ jobs:
159
180
steps :
160
181
- uses : actions/checkout@v2
161
182
- name : Use Node.js ${{ matrix.NODE_VERSION }}
162
- uses : actions/setup-node@v1
183
+ uses : actions/setup-node@v2
163
184
with :
164
185
node-version : ${{ matrix.NODE_VERSION }}
165
186
- name : Cache Node.js modules
@@ -182,20 +203,26 @@ jobs:
182
203
include :
183
204
- name : PostgreSQL 11, PostGIS 3.0
184
205
POSTGRES_IMAGE : postgis/postgis:11-3.0
185
- NODE_VERSION : 14.17.6
206
+ NODE_VERSION : 16. 14.2
186
207
- name : PostgreSQL 11, PostGIS 3.1
187
208
POSTGRES_IMAGE : postgis/postgis:11-3.1
188
- NODE_VERSION : 14.17.6
189
- - name : PostgreSQL 12, PostGIS 3.1
190
- POSTGRES_IMAGE : postgis/postgis:12-3.1
191
- NODE_VERSION : 14.17.6
192
- - name : PostgreSQL 13, PostGIS 3.1
193
- POSTGRES_IMAGE : postgis/postgis:13-3.1
194
- NODE_VERSION : 14.17.6
209
+ NODE_VERSION : 16.14.2
210
+ - name : PostgreSQL 11, PostGIS 3.2
211
+ 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
195
222
fail-fast : false
196
223
name : ${{ matrix.name }}
197
224
timeout-minutes : 15
198
- runs-on : ubuntu-18 .04
225
+ runs-on : ubuntu-20 .04
199
226
services :
200
227
redis :
201
228
image : redis
@@ -219,7 +246,7 @@ jobs:
219
246
steps :
220
247
- uses : actions/checkout@v2
221
248
- name : Use Node.js ${{ matrix.NODE_VERSION }}
222
- uses : actions/setup-node@v1
249
+ uses : actions/setup-node@v2
223
250
with :
224
251
node-version : ${{ matrix.NODE_VERSION }}
225
252
- name : Cache Node.js modules
@@ -231,7 +258,9 @@ jobs:
231
258
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
232
259
- name : Install dependencies
233
260
run : npm ci
234
- - run : bash scripts/before_script_postgres.sh
261
+ - run : |
262
+ bash scripts/before_script_postgres_conf.sh
263
+ bash scripts/before_script_postgres.sh
235
264
- run : npm run coverage
236
265
env :
237
266
CI : true
0 commit comments