67
67
run : yarn test:integration
68
68
env :
69
69
FORCE_COLOR : true
70
-
70
+ - name : Upload vitest config files
71
+ uses : actions/upload-artifact@v4
72
+ with :
73
+ name : vitest-config-integration-${{ matrix.os }}-${{ matrix.version }}
74
+ overwrite : true
75
+ path : |
76
+ packages/platform/platform-express/vitest.config.mts
77
+ packages/platform/platform-koa/vitest.config.mts
78
+ continue-on-error : true
71
79
test-core :
72
80
runs-on : ubuntu-latest
73
81
89
97
run : yarn tsc --build
90
98
- name : Run test
91
99
run : yarn test:core --since origin/production
100
+ - name : Upload vitest config files
101
+ uses : actions/upload-artifact@v4
102
+ with :
103
+ name : vitest-config-core
104
+ path : |
105
+ packages/{core,di,engines}/vitest.config.mts
106
+ packages/platform/common/vitest.config.mts
107
+ packages/utils/normalize-path/vitest.config.mts
108
+ continue-on-error : true
92
109
93
110
test-specs :
94
111
runs-on : ubuntu-latest
@@ -111,7 +128,13 @@ jobs:
111
128
run : yarn tsc --build
112
129
- name : Run test
113
130
run : yarn test:specs --since origin/production
114
-
131
+ - name : Upload vitest config files
132
+ uses : actions/upload-artifact@v4
133
+ with :
134
+ name : vitest-config-specs
135
+ path : |
136
+ packages/specs/*/vitest.config.mts
137
+ continue-on-error : true
115
138
test-platform :
116
139
runs-on : ubuntu-latest
117
140
@@ -133,7 +156,14 @@ jobs:
133
156
run : yarn tsc --build
134
157
- name : Run test
135
158
run : yarn test:platform --since origin/production
136
-
159
+ - name : Upload vitest config files
160
+ uses : actions/upload-artifact@v4
161
+ with :
162
+ name : vitest-config-platform
163
+ path : |
164
+ packages/platform/platform-*/vitest.config.mts
165
+ !packages/platform/platform-express/vitest.config.mts
166
+ !packages/platform/platform-koa/vitest.config.mts
137
167
test-orm :
138
168
runs-on : ubuntu-latest
139
169
@@ -155,7 +185,12 @@ jobs:
155
185
run : yarn tsc --build
156
186
- name : Run test
157
187
run : yarn test:orm --since origin/production
158
-
188
+ - name : Upload vitest config files
189
+ uses : actions/upload-artifact@v4
190
+ with :
191
+ name : vitest-config
192
+ path : |
193
+ packages/orm/*/vitest.config.mts
159
194
test-graphql :
160
195
runs-on : ubuntu-latest
161
196
@@ -177,7 +212,12 @@ jobs:
177
212
run : yarn tsc --build
178
213
- name : Run test
179
214
run : yarn test:graphql --since origin/production
180
-
215
+ - name : Upload vitest config files
216
+ uses : actions/upload-artifact@v4
217
+ with :
218
+ name : vitest-config-graphql
219
+ path : |
220
+ packages/graphql/*/vitest.config.mts
181
221
test-security :
182
222
runs-on : ubuntu-latest
183
223
@@ -199,7 +239,12 @@ jobs:
199
239
run : yarn tsc --build
200
240
- name : Run test
201
241
run : yarn test:security --since origin/production
202
-
242
+ - name : Upload vitest config files
243
+ uses : actions/upload-artifact@v4
244
+ with :
245
+ name : vitest-config-security
246
+ path : |
247
+ packages/security/*/vitest.config.mts
203
248
test-third-parties :
204
249
runs-on : ubuntu-latest
205
250
@@ -221,33 +266,16 @@ jobs:
221
266
run : yarn tsc --build
222
267
- name : Run test
223
268
run : yarn test:third-parties --since origin/production
224
-
225
- test-formio :
226
- runs-on : ubuntu-latest
227
-
228
- strategy :
229
- matrix :
230
- node-version : [20.12.2]
231
-
232
- steps :
233
- - uses : actions/checkout@v3
269
+ - name : Upload vitest config files
270
+ uses : actions/upload-artifact@v4
234
271
with :
235
- fetch-depth : 0
236
- - name : Use Node.js ${{ matrix.node-version }}
237
- uses : actions/setup-node@v3
238
- with :
239
- node-version : ${{ matrix.node-version }}
240
- - name : Install dependencies
241
- run : yarn install --immutable --network-timeout 500000
242
- - name : Run build
243
- run : yarn tsc --build
244
- - name : Run test
245
- run : yarn test:formio --since origin/production
272
+ name : vitest-config-third-parties
273
+ path : |
274
+ packages/third-parties/*/vitest.config.mts
246
275
247
276
deploy-packages :
248
277
runs-on : ubuntu-latest
249
- needs :
250
- [lint, test-core, test-specs, test-platform, test-integration, test-orm, test-security, test-graphql, test-third-parties, test-formio]
278
+ needs : [lint, test-core, test-specs, test-platform, test-integration, test-orm, test-security, test-graphql, test-third-parties]
251
279
if : github.event_name != 'pull_request' && contains('
252
280
refs/heads/production
253
281
refs/heads/alpha
@@ -267,6 +295,12 @@ jobs:
267
295
node-version: ${{ matrix.node-version }}
268
296
- name: Install dependencies
269
297
run: yarn install --network-timeout 500000
298
+
299
+ - name: Download Core vitest config files
300
+ uses: actions/download-artifact@v3
301
+ with:
302
+ path: .
303
+
270
304
- name: Release packages
271
305
env:
272
306
CI: true
0 commit comments