8
8
paths-ignore :
9
9
- ' **/**.md'
10
10
env :
11
- NODE_VERSION : 19.3 .0
11
+ NODE_VERSION : 20.12 .0
12
12
PARSE_SERVER_TEST_TIMEOUT : 20000
13
13
jobs :
14
14
check-code-analysis :
24
24
language : ['javascript']
25
25
steps :
26
26
- name : Checkout repository
27
- uses : actions/checkout@v3
27
+ uses : actions/checkout@v4
28
28
- name : Initialize CodeQL
29
29
uses : github/codeql-action/init@v2
30
30
with :
@@ -37,13 +37,13 @@ jobs:
37
37
timeout-minutes : 15
38
38
runs-on : ubuntu-latest
39
39
steps :
40
- - uses : actions/checkout@v2
40
+ - uses : actions/checkout@v4
41
41
- name : Use Node.js ${{ matrix.NODE_VERSION }}
42
- uses : actions/setup-node@v2
42
+ uses : actions/setup-node@v4
43
43
with :
44
44
node-version : ${{ matrix.node-version }}
45
45
- name : Cache Node.js modules
46
- uses : actions/cache@v2
46
+ uses : actions/cache@v4
47
47
with :
48
48
path : ~/.npm
49
49
key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
@@ -58,13 +58,13 @@ jobs:
58
58
timeout-minutes : 15
59
59
runs-on : ubuntu-latest
60
60
steps :
61
- - uses : actions/checkout@v2
61
+ - uses : actions/checkout@v4
62
62
- name : Use Node.js ${{ matrix.NODE_VERSION }}
63
- uses : actions/setup-node@v2
63
+ uses : actions/setup-node@v4
64
64
with :
65
65
node-version : ${{ matrix.node-version }}
66
66
- name : Cache Node.js modules
67
- uses : actions/cache@v2
67
+ uses : actions/cache@v4
68
68
with :
69
69
path : ~/.npm
70
70
key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
@@ -78,13 +78,13 @@ jobs:
78
78
timeout-minutes : 5
79
79
runs-on : ubuntu-latest
80
80
steps :
81
- - uses : actions/checkout@v2
81
+ - uses : actions/checkout@v4
82
82
- name : Use Node.js ${{ matrix.NODE_VERSION }}
83
- uses : actions/setup-node@v2
83
+ uses : actions/setup-node@v4
84
84
with :
85
85
node-version : ${{ matrix.node-version }}
86
86
- name : Cache Node.js modules
87
- uses : actions/cache@v2
87
+ uses : actions/cache@v4
88
88
with :
89
89
path : ~/.npm
90
90
key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
@@ -99,13 +99,13 @@ jobs:
99
99
timeout-minutes : 5
100
100
runs-on : ubuntu-latest
101
101
steps :
102
- - uses : actions/checkout@v2
102
+ - uses : actions/checkout@v4
103
103
- name : Use Node.js ${{ matrix.NODE_VERSION }}
104
- uses : actions/setup-node@v2
104
+ uses : actions/setup-node@v4
105
105
with :
106
106
node-version : ${{ matrix.node-version }}
107
107
- name : Cache Node.js modules
108
- uses : actions/cache@v2
108
+ uses : actions/cache@v4
109
109
with :
110
110
path : ~/.npm
111
111
key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
@@ -120,23 +120,23 @@ jobs:
120
120
runs-on : ubuntu-latest
121
121
steps :
122
122
- name : Checkout repository
123
- uses : actions/checkout@v2
123
+ uses : actions/checkout@v4
124
124
- name : Set up QEMU
125
125
id : qemu
126
- uses : docker/setup-qemu-action@v1
126
+ uses : docker/setup-qemu-action@v2
127
127
- name : Set up Docker Buildx
128
- uses : docker/setup-buildx-action@v1
128
+ uses : docker/setup-buildx-action@v2
129
129
- name : Build docker image
130
- uses : docker/build-push-action@v2
130
+ uses : docker/build-push-action@v3
131
131
with :
132
132
context : .
133
- platforms : linux/amd64
133
+ platforms : linux/amd64, linux/arm64/v8
134
134
check-lock-file-version :
135
135
name : NPM Lock File Version
136
136
timeout-minutes : 5
137
137
runs-on : ubuntu-latest
138
138
steps :
139
- - uses : actions/checkout@v2
139
+ - uses : actions/checkout@v4
140
140
- name : Check NPM lock file version
141
141
uses : mansona/npm-lockfile-version@v1
142
142
with :
@@ -146,42 +146,34 @@ jobs:
146
146
matrix :
147
147
include :
148
148
- name : MongoDB 4.2, ReplicaSet
149
- MONGODB_VERSION : 4.2.19
149
+ MONGODB_VERSION : 4.2.25
150
150
MONGODB_TOPOLOGY : replset
151
- NODE_VERSION : 19.3 .0
151
+ NODE_VERSION : 20.12 .0
152
152
- name : MongoDB 4.4, ReplicaSet
153
- MONGODB_VERSION : 4.4.13
153
+ MONGODB_VERSION : 4.4.29
154
154
MONGODB_TOPOLOGY : replset
155
- NODE_VERSION : 19.3 .0
155
+ NODE_VERSION : 20.12 .0
156
156
- name : MongoDB 5, ReplicaSet
157
- MONGODB_VERSION : 5.3.2
157
+ MONGODB_VERSION : 5.0.26
158
158
MONGODB_TOPOLOGY : replset
159
- NODE_VERSION : 19.3 .0
159
+ NODE_VERSION : 20.12 .0
160
160
- name : MongoDB 6, ReplicaSet
161
- MONGODB_VERSION : 6.0.2
161
+ MONGODB_VERSION : 6.0.14
162
162
MONGODB_TOPOLOGY : replset
163
- NODE_VERSION : 19.3 .0
163
+ NODE_VERSION : 20.12 .0
164
164
- name : MongoDB 7, ReplicaSet
165
- MONGODB_VERSION : 7.0.1
165
+ MONGODB_VERSION : 7.0.8
166
166
MONGODB_TOPOLOGY : replset
167
- NODE_VERSION : 19.3 .0
167
+ NODE_VERSION : 20.12 .0
168
168
- name : Redis Cache
169
169
PARSE_SERVER_TEST_CACHE : redis
170
- MONGODB_VERSION : 4.4.13
170
+ MONGODB_VERSION : 7.0.8
171
171
MONGODB_TOPOLOGY : standalone
172
- NODE_VERSION : 19.3.0
173
- - name : Node 14
174
- MONGODB_VERSION : 4.4.13
175
- MONGODB_TOPOLOGY : standalone
176
- NODE_VERSION : 14.21.1
177
- - name : Node 16
178
- MONGODB_VERSION : 4.4.13
179
- MONGODB_TOPOLOGY : standalone
180
- NODE_VERSION : 16.18.1
172
+ NODE_VERSION : 20.12.0
181
173
- name : Node 18
182
- MONGODB_VERSION : 4.4.13
174
+ MONGODB_VERSION : 7.0.8
183
175
MONGODB_TOPOLOGY : standalone
184
- NODE_VERSION : 18.12.1
176
+ NODE_VERSION : 18.20.0
185
177
fail-fast : false
186
178
name : ${{ matrix.name }}
187
179
timeout-minutes : 15
@@ -200,16 +192,13 @@ jobs:
200
192
steps :
201
193
- name : Fix usage of insecure GitHub protocol
202
194
run : sudo git config --system url."https://github".insteadOf "git://github"
203
- - name : Fix git protocol for Node 14
204
- if : ${{ startsWith(matrix.NODE_VERSION, '14.') }}
205
- run : sudo git config --system url."https://github".insteadOf "ssh://git@github"
206
- - uses : actions/checkout@v2
195
+ - uses : actions/checkout@v4
207
196
- name : Use Node.js ${{ matrix.NODE_VERSION }}
208
- uses : actions/setup-node@v2
197
+ uses : actions/setup-node@v4
209
198
with :
210
199
node-version : ${{ matrix.NODE_VERSION }}
211
200
- name : Cache Node.js modules
212
- uses : actions/cache@v2
201
+ uses : actions/cache@v4
213
202
with :
214
203
path : ~/.npm
215
204
key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
@@ -221,35 +210,36 @@ jobs:
221
210
- run : npm run coverage
222
211
env :
223
212
CI : true
224
- - run : bash <(curl -s https://codecov.io/bash)
213
+ - name : Upload code coverage
214
+ uses : codecov/codecov-action@v4
215
+ with :
216
+ fail_ci_if_error : true
217
+ token : ${{ secrets.CODECOV_TOKEN }}
225
218
check-postgres :
226
219
strategy :
227
220
matrix :
228
221
include :
229
- - name : PostgreSQL 11, PostGIS 3.0
230
- POSTGRES_IMAGE : postgis/postgis:11-3.0
231
- NODE_VERSION : 19.3.0
232
- - name : PostgreSQL 11, PostGIS 3.1
233
- POSTGRES_IMAGE : postgis/postgis:11-3.1
234
- NODE_VERSION : 19.3.0
235
- - name : PostgreSQL 11, PostGIS 3.2
236
- POSTGRES_IMAGE : postgis/postgis:11-3.2
237
- NODE_VERSION : 19.3.0
238
- - name : PostgreSQL 11, PostGIS 3.3
239
- POSTGRES_IMAGE : postgis/postgis:11-3.3
240
- NODE_VERSION : 19.3.0
241
- - name : PostgreSQL 12, PostGIS 3.3
242
- POSTGRES_IMAGE : postgis/postgis:12-3.3
243
- NODE_VERSION : 19.3.0
222
+ - name : PostgreSQL 13, PostGIS 3.1
223
+ POSTGRES_IMAGE : postgis/postgis:13-3.1
224
+ NODE_VERSION : 20.12.0
225
+ - name : PostgreSQL 13, PostGIS 3.2
226
+ POSTGRES_IMAGE : postgis/postgis:13-3.2
227
+ NODE_VERSION : 20.12.0
244
228
- name : PostgreSQL 13, PostGIS 3.3
245
229
POSTGRES_IMAGE : postgis/postgis:13-3.3
246
- NODE_VERSION : 19.3.0
247
- - name : PostgreSQL 14, PostGIS 3.3
248
- POSTGRES_IMAGE : postgis/postgis:14-3.3
249
- NODE_VERSION : 19.3.0
250
- - name : PostgreSQL 15, PostGIS 3.3
251
- POSTGRES_IMAGE : postgis/postgis:15-3.3
252
- NODE_VERSION : 19.3.0
230
+ NODE_VERSION : 20.12.0
231
+ - name : PostgreSQL 13, PostGIS 3.4
232
+ POSTGRES_IMAGE : postgis/postgis:13-3.4
233
+ NODE_VERSION : 20.12.0
234
+ - name : PostgreSQL 14, PostGIS 3.4
235
+ POSTGRES_IMAGE : postgis/postgis:14-3.4
236
+ NODE_VERSION : 20.12.0
237
+ - name : PostgreSQL 15, PostGIS 3.4
238
+ POSTGRES_IMAGE : postgis/postgis:15-3.4
239
+ NODE_VERSION : 20.12.0
240
+ - name : PostgreSQL 16, PostGIS 3.4
241
+ POSTGRES_IMAGE : postgis/postgis:15-3.4
242
+ NODE_VERSION : 20.12.0
253
243
fail-fast : false
254
244
name : ${{ matrix.name }}
255
245
timeout-minutes : 15
@@ -275,13 +265,13 @@ jobs:
275
265
PARSE_SERVER_TEST_DATABASE_URI : postgres://postgres:postgres@localhost:5432/parse_server_postgres_adapter_test_database
276
266
NODE_VERSION : ${{ matrix.NODE_VERSION }}
277
267
steps :
278
- - uses : actions/checkout@v2
268
+ - uses : actions/checkout@v4
279
269
- name : Use Node.js ${{ matrix.NODE_VERSION }}
280
- uses : actions/setup-node@v2
270
+ uses : actions/setup-node@v4
281
271
with :
282
272
node-version : ${{ matrix.NODE_VERSION }}
283
273
- name : Cache Node.js modules
284
- uses : actions/cache@v2
274
+ uses : actions/cache@v4
285
275
with :
286
276
path : ~/.npm
287
277
key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
@@ -295,7 +285,11 @@ jobs:
295
285
- run : npm run coverage
296
286
env :
297
287
CI : true
298
- - run : bash <(curl -s https://codecov.io/bash)
288
+ - name : Upload code coverage
289
+ uses : codecov/codecov-action@v4
290
+ with :
291
+ fail_ci_if_error : true
292
+ token : ${{ secrets.CODECOV_TOKEN }}
299
293
concurrency :
300
294
group : ${{ github.workflow }}-${{ github.ref }}
301
295
cancel-in-progress : true
0 commit comments