4
4
pull_request :
5
5
push :
6
6
7
-
8
7
jobs :
9
8
unit-tests :
10
9
runs-on : ubuntu22-4x16
11
- strategy :
12
- matrix :
13
- node-version : [20.10.0]
14
10
services :
15
11
storage-ftp :
16
12
image : garethflowers/ftp-server:0.7.0
@@ -28,20 +24,10 @@ jobs:
28
24
- ' 2222:22'
29
25
steps :
30
26
- uses : actions/checkout@v4
31
- - name : Install yarn
32
- run : corepack enable && yarn set version 4.0.2
33
- - name : Use Node.js ${{ matrix.node-version }}
34
- uses : actions/setup-node@v4
35
- with :
36
- node-version : ${{ matrix.node-version }}
37
- cache : yarn
38
- - name : npm install
39
- run : yarn
40
- - name : Lint commit messages
41
- run : ./node_modules/.bin/commitlint --from $BASE_SHA --to $HEAD_SHA --verbose
42
- env :
43
- BASE_SHA : ${{ github.event.pull_request.base.sha }}
44
- HEAD_SHA : ${{ github.event.pull_request.head.sha }}
27
+
28
+ - name : Setup
29
+ uses : ./.github/actions/setup
30
+ timeout-minutes : 10
45
31
46
32
- name : Build
47
33
run : |
99
85
runs-on : ubuntu22-4x16
100
86
strategy :
101
87
matrix :
102
- node-version : [20.10.0]
103
88
postgres-version : [14]
104
89
services :
105
90
postgres :
@@ -113,20 +98,18 @@ jobs:
113
98
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
114
99
steps :
115
100
- uses : actions/checkout@v4
116
- - name : Install yarn
117
- run : corepack enable && yarn set version 4.0.2
118
- - name : Use Node.js ${{ matrix.node-version }}
119
- uses : actions/setup-node@v4
120
- with :
121
- node-version : ${{ matrix.node-version }}
122
- cache : yarn
123
- - name : npm install
124
- run : corepack enable && yarn set version 4.0.2 && yarn
101
+
102
+ - name : Setup
103
+ uses : ./.github/actions/setup
104
+ timeout-minutes : 10
105
+
125
106
- name : Build
126
107
run : |
127
108
./node_modules/.bin/tsc --build packages/postgres/tsconfig.json;
109
+
128
110
- name : Test
129
111
run : npm run test:coverage packages/postgres/
112
+
130
113
- name : Send coverage
131
114
run : ./node_modules/.bin/codecov -f coverage/*.json
132
115
@@ -136,7 +119,6 @@ jobs:
136
119
runs-on : ubuntu22-4x16
137
120
strategy :
138
121
matrix :
139
- node-version : [20.10.0]
140
122
mysql-version : [8.0]
141
123
services :
142
124
mysql :
@@ -149,46 +131,39 @@ jobs:
149
131
- ' 3306:3306'
150
132
steps :
151
133
- uses : actions/checkout@v4
152
- - name : Install yarn
153
- run : corepack enable && yarn set version 4.0.2
154
- - name : Use Node.js ${{ matrix.node-version }}
155
- uses : actions/setup-node@v4
156
- with :
157
- node-version : ${{ matrix.node-version }}
158
- cache : yarn
159
- - name : npm install
160
- run : corepack enable && yarn set version 4.0.2 && yarn
134
+
135
+ - name : Setup
136
+ uses : ./.github/actions/setup
137
+ timeout-minutes : 10
138
+
161
139
- name : Build
162
140
run : |
163
141
./node_modules/.bin/tsc --build packages/mysql/tsconfig.json
142
+
164
143
- name : Test
165
144
run : npm run test:coverage packages/mysql/
145
+
166
146
- name : Send coverage
167
147
run : ./node_modules/.bin/codecov -f coverage/*.json
168
148
169
149
orm-sqlite :
170
150
needs :
171
151
- unit-tests
172
152
runs-on : ubuntu22-4x16
173
- strategy :
174
- matrix :
175
- node-version : [20.10.0]
176
153
steps :
177
154
- uses : actions/checkout@v4
178
- - name : Install yarn
179
- run : corepack enable && yarn set version 4.0.2
180
- - name : Use Node.js ${{ matrix.node-version }}
181
- uses : actions/setup-node@v4
182
- with :
183
- node-version : ${{ matrix.node-version }}
184
- cache : yarn
185
- - name : npm install
186
- run : corepack enable && yarn set version 4.0.2 && yarn
155
+
156
+ - name : Setup
157
+ uses : ./.github/actions/setup
158
+ timeout-minutes : 10
159
+
187
160
- name : Build
188
161
run : |
189
162
./node_modules/.bin/tsc --build packages/sqlite/tsconfig.json
163
+
190
164
- name : Test
191
165
run : npm run test:coverage packages/sqlite/
166
+
192
167
- name : Send coverage
193
168
run : ./node_modules/.bin/codecov -f coverage/*.json
194
169
@@ -198,7 +173,6 @@ jobs:
198
173
runs-on : ubuntu22-4x16
199
174
strategy :
200
175
matrix :
201
- node-version : [20.10.0]
202
176
mongo-version : [4.0]
203
177
services :
204
178
# this is used for the simple-auth test
@@ -218,20 +192,19 @@ jobs:
218
192
with :
219
193
mongodb-version : ${{ matrix.mongo-version }}
220
194
mongodb-replica-set : test-rs
195
+
221
196
- uses : actions/checkout@v4
222
- - name : Install yarn
223
- run : corepack enable && yarn set version 4.0.2
224
- - name : Use Node.js ${{ matrix.node-version }}
225
- uses : actions/setup-node@v4
226
- with :
227
- node-version : ${{ matrix.node-version }}
228
- cache : yarn
229
- - name : Install
230
- run : corepack enable && yarn set version 4.0.2 && yarn
197
+
198
+ - name : Setup
199
+ uses : ./.github/actions/setup
200
+ timeout-minutes : 10
201
+
231
202
- name : Build
232
203
run : |
233
204
./node_modules/.bin/tsc --build packages/mongo/tsconfig.json
205
+
234
206
- name : Test
235
207
run : npm run test:coverage packages/mongo/
208
+
236
209
- name : Send coverage
237
210
run : ./node_modules/.bin/codecov -f coverage/*.json
0 commit comments