11name : ci
22on :
33 push :
4- branches :
5- - master
4+ branches : [ release, alpha, beta, next-major ]
65 pull_request :
76 branches :
87 - ' **'
98env :
10- NODE_VERSION : 14.17.6
9+ NODE_VERSION : 16. 14.2
1110 PARSE_SERVER_TEST_TIMEOUT : 20000
1211jobs :
1312 check-ci :
14- name : CI Self- Check
13+ name : Node Engine Check
1514 timeout-minutes : 15
16- runs-on : ubuntu-18 .04
15+ runs-on : ubuntu-20 .04
1716 steps :
1817 - uses : actions/checkout@v2
1918 - name : Use Node.js ${{ matrix.NODE_VERSION }}
20- uses : actions/setup-node@v1
19+ uses : actions/setup-node@v2
2120 with :
2221 node-version : ${{ matrix.node-version }}
2322 - name : Cache Node.js modules
@@ -29,23 +28,16 @@ jobs:
2928 ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
3029 - name : Install dependencies
3130 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
4133 check-lint :
4234 name : Lint
4335 timeout-minutes : 15
44- runs-on : ubuntu-18 .04
36+ runs-on : ubuntu-20 .04
4537 steps :
4638 - uses : actions/checkout@v2
4739 - name : Use Node.js ${{ matrix.NODE_VERSION }}
48- uses : actions/setup-node@v1
40+ uses : actions/setup-node@v2
4941 with :
5042 node-version : ${{ matrix.node-version }}
5143 - name : Cache Node.js modules
@@ -61,11 +53,11 @@ jobs:
6153 check-circular :
6254 name : Circular Dependencies
6355 timeout-minutes : 5
64- runs-on : ubuntu-18 .04
56+ runs-on : ubuntu-20 .04
6557 steps :
6658 - uses : actions/checkout@v2
6759 - name : Use Node.js ${{ matrix.NODE_VERSION }}
68- uses : actions/setup-node@v1
60+ uses : actions/setup-node@v2
6961 with :
7062 node-version : ${{ matrix.node-version }}
7163 - name : Cache Node.js modules
@@ -80,16 +72,25 @@ jobs:
8072 - run : npm run madge:circular
8173 check-docker :
8274 name : Docker Build
83- timeout-minutes : 5
84- runs-on : ubuntu-18 .04
75+ timeout-minutes : 15
76+ runs-on : ubuntu-20 .04
8577 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
8785 - name : Build docker image
8886 uses : docker/build-push-action@v2
87+ with :
88+ context : .
89+ platforms : linux/amd64
8990 check-lock-file-version :
9091 name : NPM Lock File Version
9192 timeout-minutes : 5
92- runs-on : ubuntu-18 .04
93+ runs-on : ubuntu-20 .04
9394 steps :
9495 - uses : actions/checkout@v2
9596 - name : Check NPM lock file version
@@ -100,51 +101,71 @@ jobs:
100101 strategy :
101102 matrix :
102103 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
103114 - name : MongoDB 5.0, ReplicaSet, WiredTiger
104- MONGODB_VERSION : 5.0.2
115+ MONGODB_VERSION : 5.0.6
105116 MONGODB_TOPOLOGY : replicaset
106117 MONGODB_STORAGE_ENGINE : wiredTiger
107- NODE_VERSION : 14.17.6
118+ NODE_VERSION : 16. 14.2
108119 - name : MongoDB 4.4, ReplicaSet, WiredTiger
109- MONGODB_VERSION : 4.4.8
120+ MONGODB_VERSION : 4.4.13
110121 MONGODB_TOPOLOGY : replicaset
111122 MONGODB_STORAGE_ENGINE : wiredTiger
112- NODE_VERSION : 14.17.6
123+ NODE_VERSION : 16. 14.2
113124 - name : MongoDB 4.2, ReplicaSet, WiredTiger
114- MONGODB_VERSION : 4.2.15
125+ MONGODB_VERSION : 4.2.19
115126 MONGODB_TOPOLOGY : replicaset
116127 MONGODB_STORAGE_ENGINE : wiredTiger
117- NODE_VERSION : 14.17.6
128+ NODE_VERSION : 16. 14.2
118129 - name : MongoDB 4.0, ReplicaSet, WiredTiger
119- MONGODB_VERSION : 4.0.25
130+ MONGODB_VERSION : 4.0.28
120131 MONGODB_TOPOLOGY : replicaset
121132 MONGODB_STORAGE_ENGINE : wiredTiger
122- NODE_VERSION : 14.17.6
133+ NODE_VERSION : 16. 14.2
123134 - name : MongoDB 4.0, Standalone, MMAPv1
124- MONGODB_VERSION : 4.0.25
135+ MONGODB_VERSION : 4.0.28
125136 MONGODB_TOPOLOGY : standalone
126137 MONGODB_STORAGE_ENGINE : mmapv1
127- NODE_VERSION : 14.17.6
138+ NODE_VERSION : 16. 14.2
128139 - name : Redis Cache
129140 PARSE_SERVER_TEST_CACHE : redis
130- MONGODB_VERSION : 4.4.8
141+ MONGODB_VERSION : 4.4.13
131142 MONGODB_TOPOLOGY : standalone
132143 MONGODB_STORAGE_ENGINE : wiredTiger
133- NODE_VERSION : 14.17.6
144+ NODE_VERSION : 16. 14.2
134145 - 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
136157 MONGODB_TOPOLOGY : standalone
137158 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
141162 MONGODB_TOPOLOGY : standalone
142163 MONGODB_STORAGE_ENGINE : wiredTiger
143- NODE_VERSION : 15.14 .0
164+ NODE_VERSION : 18.1 .0
144165 fail-fast : false
145166 name : ${{ matrix.name }}
146167 timeout-minutes : 15
147- runs-on : ubuntu-18 .04
168+ runs-on : ubuntu-20 .04
148169 services :
149170 redis :
150171 image : redis
@@ -159,7 +180,7 @@ jobs:
159180 steps :
160181 - uses : actions/checkout@v2
161182 - name : Use Node.js ${{ matrix.NODE_VERSION }}
162- uses : actions/setup-node@v1
183+ uses : actions/setup-node@v2
163184 with :
164185 node-version : ${{ matrix.NODE_VERSION }}
165186 - name : Cache Node.js modules
@@ -182,20 +203,26 @@ jobs:
182203 include :
183204 - name : PostgreSQL 11, PostGIS 3.0
184205 POSTGRES_IMAGE : postgis/postgis:11-3.0
185- NODE_VERSION : 14.17.6
206+ NODE_VERSION : 16. 14.2
186207 - name : PostgreSQL 11, PostGIS 3.1
187208 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
195222 fail-fast : false
196223 name : ${{ matrix.name }}
197224 timeout-minutes : 15
198- runs-on : ubuntu-18 .04
225+ runs-on : ubuntu-20 .04
199226 services :
200227 redis :
201228 image : redis
@@ -219,7 +246,7 @@ jobs:
219246 steps :
220247 - uses : actions/checkout@v2
221248 - name : Use Node.js ${{ matrix.NODE_VERSION }}
222- uses : actions/setup-node@v1
249+ uses : actions/setup-node@v2
223250 with :
224251 node-version : ${{ matrix.NODE_VERSION }}
225252 - name : Cache Node.js modules
@@ -231,7 +258,9 @@ jobs:
231258 ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
232259 - name : Install dependencies
233260 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
235264 - run : npm run coverage
236265 env :
237266 CI : true
0 commit comments