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.16 .1
9+ NODE_VERSION : 14.18 .1
1110 PARSE_SERVER_TEST_TIMEOUT : 20000
1211jobs :
1312 check-ci :
14- name : CI Self- Check
13+ name : Node Engine Check
1514 timeout-minutes : 15
1615 runs-on : ubuntu-18.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,16 +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
31+ - name : CI Node Engine Check
32+ run : npm run ci:checkNodeEngine
3433 check-lint :
3534 name : Lint
3635 timeout-minutes : 15
3736 runs-on : ubuntu-18.04
3837 steps :
3938 - uses : actions/checkout@v2
4039 - name : Use Node.js ${{ matrix.NODE_VERSION }}
41- uses : actions/setup-node@v1
40+ uses : actions/setup-node@v2
4241 with :
4342 node-version : ${{ matrix.node-version }}
4443 - name : Cache Node.js modules
5857 steps :
5958 - uses : actions/checkout@v2
6059 - name : Use Node.js ${{ matrix.NODE_VERSION }}
61- uses : actions/setup-node@v1
60+ uses : actions/setup-node@v2
6261 with :
6362 node-version : ${{ matrix.node-version }}
6463 - name : Cache Node.js modules
@@ -73,12 +72,21 @@ jobs:
7372 - run : npm run madge:circular
7473 check-docker :
7574 name : Docker Build
76- timeout-minutes : 5
75+ timeout-minutes : 15
7776 runs-on : ubuntu-18.04
7877 steps :
79- - 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
8085 - name : Build docker image
8186 uses : docker/build-push-action@v2
87+ with :
88+ context : .
89+ platforms : linux/amd64
8290 check-lock-file-version :
8391 name : NPM Lock File Version
8492 timeout-minutes : 5
@@ -93,39 +101,44 @@ jobs:
93101 strategy :
94102 matrix :
95103 include :
104+ - name : MongoDB 5.0, ReplicaSet, WiredTiger
105+ MONGODB_VERSION : 5.0.3
106+ MONGODB_TOPOLOGY : replicaset
107+ MONGODB_STORAGE_ENGINE : wiredTiger
108+ NODE_VERSION : 14.18.1
96109 - name : MongoDB 4.4, ReplicaSet, WiredTiger
97- MONGODB_VERSION : 4.4.4
110+ MONGODB_VERSION : 4.4.10
98111 MONGODB_TOPOLOGY : replicaset
99112 MONGODB_STORAGE_ENGINE : wiredTiger
100- NODE_VERSION : 14.16 .1
113+ NODE_VERSION : 14.18 .1
101114 - name : MongoDB 4.2, ReplicaSet, WiredTiger
102- MONGODB_VERSION : 4.2.13
115+ MONGODB_VERSION : 4.2.17
103116 MONGODB_TOPOLOGY : replicaset
104117 MONGODB_STORAGE_ENGINE : wiredTiger
105- NODE_VERSION : 14.16 .1
118+ NODE_VERSION : 14.18 .1
106119 - name : MongoDB 4.0, ReplicaSet, WiredTiger
107- MONGODB_VERSION : 4.0.23
120+ MONGODB_VERSION : 4.0.27
108121 MONGODB_TOPOLOGY : replicaset
109122 MONGODB_STORAGE_ENGINE : wiredTiger
110- NODE_VERSION : 14.16 .1
123+ NODE_VERSION : 14.18 .1
111124 - name : MongoDB 4.0, Standalone, MMAPv1
112- MONGODB_VERSION : 4.0.23
125+ MONGODB_VERSION : 4.0.27
113126 MONGODB_TOPOLOGY : standalone
114127 MONGODB_STORAGE_ENGINE : mmapv1
115- NODE_VERSION : 14.16 .1
128+ NODE_VERSION : 14.18 .1
116129 - name : Redis Cache
117130 PARSE_SERVER_TEST_CACHE : redis
118- MONGODB_VERSION : 4.4.4
131+ MONGODB_VERSION : 4.4.10
119132 MONGODB_TOPOLOGY : standalone
120133 MONGODB_STORAGE_ENGINE : wiredTiger
121- NODE_VERSION : 14.16 .1
134+ NODE_VERSION : 14.18 .1
122135 - name : Node 12
123- MONGODB_VERSION : 4.4.4
136+ MONGODB_VERSION : 4.4.10
124137 MONGODB_TOPOLOGY : standalone
125138 MONGODB_STORAGE_ENGINE : wiredTiger
126- NODE_VERSION : 12.22.1
139+ NODE_VERSION : 12.22.7
127140 - name : Node 15
128- MONGODB_VERSION : 4.4.4
141+ MONGODB_VERSION : 4.4.10
129142 MONGODB_TOPOLOGY : standalone
130143 MONGODB_STORAGE_ENGINE : wiredTiger
131144 NODE_VERSION : 15.14.0
@@ -147,7 +160,7 @@ jobs:
147160 steps :
148161 - uses : actions/checkout@v2
149162 - name : Use Node.js ${{ matrix.NODE_VERSION }}
150- uses : actions/setup-node@v1
163+ uses : actions/setup-node@v2
151164 with :
152165 node-version : ${{ matrix.NODE_VERSION }}
153166 - name : Cache Node.js modules
@@ -170,12 +183,19 @@ jobs:
170183 include :
171184 - name : PostgreSQL 11, PostGIS 3.0
172185 POSTGRES_IMAGE : postgis/postgis:11-3.0
186+ NODE_VERSION : 14.18.1
173187 - name : PostgreSQL 11, PostGIS 3.1
174188 POSTGRES_IMAGE : postgis/postgis:11-3.1
189+ NODE_VERSION : 14.18.1
175190 - name : PostgreSQL 12, PostGIS 3.1
176191 POSTGRES_IMAGE : postgis/postgis:12-3.1
192+ NODE_VERSION : 14.18.1
177193 - name : PostgreSQL 13, PostGIS 3.1
178194 POSTGRES_IMAGE : postgis/postgis:13-3.1
195+ NODE_VERSION : 14.18.1
196+ - name : PostgreSQL 14, PostGIS 3.1
197+ POSTGRES_IMAGE : postgis/postgis:14-3.1
198+ NODE_VERSION : 14.18.1
179199 fail-fast : false
180200 name : ${{ matrix.name }}
181201 timeout-minutes : 15
@@ -199,12 +219,13 @@ jobs:
199219 env :
200220 PARSE_SERVER_TEST_DB : postgres
201221 PARSE_SERVER_TEST_DATABASE_URI : postgres://postgres:postgres@localhost:5432/parse_server_postgres_adapter_test_database
222+ NODE_VERSION : ${{ matrix.NODE_VERSION }}
202223 steps :
203224 - uses : actions/checkout@v2
204- - name : Use Node.js 10
205- uses : actions/setup-node@v1
225+ - name : Use Node.js ${{ matrix.NODE_VERSION }}
226+ uses : actions/setup-node@v2
206227 with :
207- node-version : 10
228+ node-version : ${{ matrix.NODE_VERSION }}
208229 - name : Cache Node.js modules
209230 uses : actions/cache@v2
210231 with :
@@ -214,7 +235,9 @@ jobs:
214235 ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
215236 - name : Install dependencies
216237 run : npm ci
217- - run : bash scripts/before_script_postgres.sh
238+ - run : |
239+ bash scripts/before_script_postgres_conf.sh
240+ bash scripts/before_script_postgres.sh
218241 - run : npm run coverage
219242 env :
220243 CI : true
0 commit comments