-
-
Notifications
You must be signed in to change notification settings - Fork 24
392 lines (320 loc) · 14.3 KB
/
production-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
name: Production Tests
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/production-tests.yml'
branches:
- 'main'
schedule:
- cron: '0 8 * * *'
jobs:
CSharp:
name: C#
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.os == 'macos-10.15' || matrix.os == 'macos-12' || matrix.node == 12 }}
strategy:
fail-fast: false
matrix:
node: [12, 14, 15, 16, 18, 20]
format: [ json, yaml ]
version: [ V2, V3 ]
os: [
ubuntu-20.04,
ubuntu-22.04,
macos-12,
macos-13,
macos-latest,
windows-2019,
windows-2022
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Setup .NET versions
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Install rapicgen
run: dotnet tool install --global rapicgen
- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
working-directory: test
- name: Generate code with NSwag
run: |
rapicgen -v csharp nswag ./OpenApi.${{ matrix.format }} GeneratedCode ./GeneratedCode/NSwag/Output.cs --no-logging
cp ./GeneratedCode/NSwag/Output.cs ./GeneratedCode/NSwag/Net6/Output.cs
cp ./GeneratedCode/NSwag/Output.cs ./GeneratedCode/NSwag/Net7/Output.cs
cp ./GeneratedCode/NSwag/Output.cs ./GeneratedCode/NSwag/Net48/Output.cs
cp ./GeneratedCode/NSwag/Output.cs ./GeneratedCode/NSwag/Net472/Output.cs
cp ./GeneratedCode/NSwag/Output.cs ./GeneratedCode/NSwag/Net462/Output.cs
cp ./GeneratedCode/NSwag/Output.cs ./GeneratedCode/NSwag/Net481/Output.cs
cp ./GeneratedCode/NSwag/Output.cs ./GeneratedCode/NSwag/NetStandard20/Output.cs
working-directory: test
- name: Build .NET 6 NSwag generated code
run: dotnet build ./GeneratedCode/NSwag/Net6/Net6.csproj
working-directory: test
- name: Build .NET 7 NSwag generated code
run: dotnet build ./GeneratedCode/NSwag/Net7/Net7.csproj
working-directory: test
- name: Build .NET 4.8.1 NSwag generated code
run: dotnet build ./GeneratedCode/NSwag/Net481/Net481.csproj
if: ${{ matrix.os == 'windows-2022' }}
working-directory: test
- name: Build .NET 4.8 NSwag generated code
run: dotnet build ./GeneratedCode/NSwag/Net48/Net48.csproj
working-directory: test
- name: Build .NET 4.7.2 NSwag generated code
run: dotnet build ./GeneratedCode/NSwag/Net472/Net472.csproj
working-directory: test
- name: Build .NET 4.6.2 NSwag generated code
run: dotnet build ./GeneratedCode/NSwag/Net462/Net462.csproj
working-directory: test
- name: Build .NET Standard 2.0 NSwag generated code
run: dotnet build ./GeneratedCode/NSwag/NetStandard20/NetStandard20.csproj
working-directory: test
- name: Generate code with OpenAPI Generator
run: |
rapicgen -v csharp openapi ./OpenApi.${{ matrix.format }} GeneratedCode ./GeneratedCode/OpenApiGenerator/Output.cs --no-logging
cp ./GeneratedCode/OpenApiGenerator/Output.cs ./GeneratedCode/OpenApiGenerator/Net6/Output.cs
cp ./GeneratedCode/OpenApiGenerator/Output.cs ./GeneratedCode/OpenApiGenerator/Net7/Output.cs
cp ./GeneratedCode/OpenApiGenerator/Output.cs ./GeneratedCode/OpenApiGenerator/Net48/Output.cs
cp ./GeneratedCode/OpenApiGenerator/Output.cs ./GeneratedCode/OpenApiGenerator/Net472/Output.cs
cp ./GeneratedCode/OpenApiGenerator/Output.cs ./GeneratedCode/OpenApiGenerator/Net462/Output.cs
cp ./GeneratedCode/OpenApiGenerator/Output.cs ./GeneratedCode/OpenApiGenerator/Net481/Output.cs
cp ./GeneratedCode/OpenApiGenerator/Output.cs ./GeneratedCode/OpenApiGenerator/NetStandard20/Output.cs
working-directory: test
- name: Build .NET 6 OpenAPI Generator generated code
run: dotnet build ./GeneratedCode/OpenApiGenerator/Net6/Net6.csproj
working-directory: test
- name: Build .NET 7 OpenAPI Generator generated code
run: dotnet build ./GeneratedCode/OpenApiGenerator/Net7/Net7.csproj
working-directory: test
- name: Build .NET 4.8.1 OpenAPI Generator generated code
run: dotnet build ./GeneratedCode/OpenApiGenerator/Net481/Net481.csproj
if: ${{ matrix.os == 'windows-2022' }}
working-directory: test
- name: Build .NET 4.8 OpenAPI Generator generated code
run: dotnet build ./GeneratedCode/OpenApiGenerator/Net48/Net48.csproj
working-directory: test
- name: Build .NET 4.7.2 OpenAPI Generator generated code
run: dotnet build ./GeneratedCode/OpenApiGenerator/Net472/Net472.csproj
working-directory: test
- name: Build .NET 4.6.2 OpenAPI Generator generated code
run: dotnet build ./GeneratedCode/OpenApiGenerator/Net462/Net462.csproj
working-directory: test
- name: Build .NET Standard 2.0 OpenAPI Generator generated code
run: dotnet build ./GeneratedCode/OpenApiGenerator/NetStandard20/NetStandard20.csproj
working-directory: test
- name: Generate code with Swagger Codegen CLI
run: |
rapicgen -v csharp swagger ./OpenApi.${{ matrix.format }} GeneratedCode ./GeneratedCode/SwaggerCodegen/Output.cs --no-logging
cp ./GeneratedCode/SwaggerCodegen/Output.cs ./GeneratedCode/SwaggerCodegen/Net6/Output.cs
cp ./GeneratedCode/SwaggerCodegen/Output.cs ./GeneratedCode/SwaggerCodegen/Net7/Output.cs
cp ./GeneratedCode/SwaggerCodegen/Output.cs ./GeneratedCode/SwaggerCodegen/Net48/Output.cs
cp ./GeneratedCode/SwaggerCodegen/Output.cs ./GeneratedCode/SwaggerCodegen/Net472/Output.cs
cp ./GeneratedCode/SwaggerCodegen/Output.cs ./GeneratedCode/SwaggerCodegen/Net462/Output.cs
cp ./GeneratedCode/SwaggerCodegen/Output.cs ./GeneratedCode/SwaggerCodegen/Net481/Output.cs
cp ./GeneratedCode/SwaggerCodegen/Output.cs ./GeneratedCode/SwaggerCodegen/NetStandard20/Output.cs
working-directory: test
- name: Build .NET 6 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/Net6/Net6.csproj
working-directory: test
- name: Build .NET 7 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/Net7/Net7.csproj
working-directory: test
- name: Build .NET 4.8.1 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/Net481/Net481.csproj
if: ${{ matrix.os == 'windows-2022' }}
working-directory: test
- name: Build .NET 4.8 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/Net48/Net48.csproj
working-directory: test
- name: Build .NET 4.7.2 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/Net472/Net472.csproj
working-directory: test
- name: Build .NET 4.6.2 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/Net462/Net462.csproj
working-directory: test
- name: Build .NET Standard 2.0 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/NetStandard20/NetStandard20.csproj
working-directory: test
- name: Build .NET Standard 2.0 Swagger Codegen CLI generated code
run: dotnet build ./GeneratedCode/SwaggerCodegen/NetStandard20/NetStandard20.csproj
working-directory: test
- name: Generate code with AutoRest
run: |
rapicgen -v csharp autorest ./OpenApi.${{ matrix.format }} GeneratedCode ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs --no-logging
cp ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs ./GeneratedCode/AutoRest-${{ matrix.version }}/Net6/Output.cs
cp ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs ./GeneratedCode/AutoRest-${{ matrix.version }}/Net7/Output.cs
cp ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs ./GeneratedCode/AutoRest-${{ matrix.version }}/Net48/Output.cs
cp ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs ./GeneratedCode/AutoRest-${{ matrix.version }}/Net472/Output.cs
cp ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs ./GeneratedCode/AutoRest-${{ matrix.version }}/Net462/Output.cs
cp ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs ./GeneratedCode/AutoRest-${{ matrix.version }}/Net481/Output.cs
cp ./GeneratedCode/AutoRest-${{ matrix.version }}/Output.cs ./GeneratedCode/AutoRest-${{ matrix.version }}/NetStandard20/Output.cs
working-directory: test
continue-on-error: true
- name: Build .NET 6 AutoRest generated code
run: dotnet build ./GeneratedCode/AutoRest-${{ matrix.version }}/Net6/Net6.csproj
working-directory: test
- name: Build .NET 7 AutoRest generated code
run: dotnet build ./GeneratedCode/AutoRest-${{ matrix.version }}/Net7/Net7.csproj
working-directory: test
- name: Build .NET 4.8.1 AutoRest generated code
run: dotnet build ./GeneratedCode/AutoRest-${{ matrix.version }}/Net481/Net481.csproj
if: ${{ matrix.version == 'V2' && matrix.os == 'windows-2022' }}
working-directory: test
- name: Build .NET 4.8 AutoRest generated code
run: dotnet build ./GeneratedCode/AutoRest-${{ matrix.version }}/Net48/Net48.csproj
working-directory: test
- name: Build .NET 4.7.2 AutoRest generated code
run: dotnet build ./GeneratedCode/AutoRest-${{ matrix.version }}/Net472/Net472.csproj
working-directory: test
- name: Build .NET 4.6.2 AutoRest generated code
run: dotnet build ./GeneratedCode/AutoRest-${{ matrix.version }}/Net462/Net462.csproj
if: ${{ matrix.version == 'V2' }}
working-directory: test
- name: Build .NET Standard 2.0 AutoRest generated code
run: dotnet build ./GeneratedCode/AutoRest-${{ matrix.version }}/NetStandard20/NetStandard20.csproj
working-directory: test
- name: Generate code with Kiota
run: rapicgen -v csharp kiota ./OpenApi.${{ matrix.format }} GeneratedCode ./GeneratedCode/Kiota/Output.cs --no-logging
working-directory: test
- name: Build Kiota generated code
run: dotnet build ./GeneratedCode/Kiota/Kiota.sln
working-directory: test
JMeter:
strategy:
fail-fast: false
matrix:
format: [ json, yaml ]
version: [ V2, V3 ]
os: [
ubuntu-20.04,
ubuntu-22.04,
macos-12,
macos-latest,
windows-2019,
windows-2022
]
name: JMeter
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Setup .NET versions
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Install rapicgen
run: dotnet tool install --global rapicgen
- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
working-directory: test
- name: Generate JMeter
run: |
rapicgen -v jmeter ./OpenApi.${{ matrix.format }} --no-logging
working-directory: test
TypeScript:
strategy:
fail-fast: false
matrix:
format: [ json, yaml ]
version: [ V2, V3 ]
os: [
ubuntu-20.04,
ubuntu-22.04,
macos-12,
macos-latest,
windows-2019,
windows-2022
]
name: TypeScript
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Setup .NET versions
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Install rapicgen
run: dotnet tool install --global rapicgen
- name: Prepare Swagger Petstore OpenAPI Spec
run: cp ./OpenAPI/${{ matrix.version }}/Swagger.${{ matrix.format }} ./OpenApi.${{ matrix.format }}
working-directory: test
- name: Generate TypeScript (Angular)
run: |
rapicgen -v typescript Angular ./OpenApi.${{ matrix.format }} Angular --no-logging
working-directory: test
- name: Generate TypeScript (Aurelia)
run: |
rapicgen -v typescript Aurelia ./OpenApi.${{ matrix.format }} Aurelia --no-logging
working-directory: test
- name: Generate TypeScript (Axios)
run: |
rapicgen -v typescript Axios ./OpenApi.${{ matrix.format }} Axios --no-logging
working-directory: test
- name: Generate TypeScript (Fetch)
run: |
rapicgen -v typescript Fetch ./OpenApi.${{ matrix.format }} Fetch --no-logging
working-directory: test
- name: Generate TypeScript (Inversify)
run: |
rapicgen -v typescript Inversify ./OpenApi.${{ matrix.format }} Inversify --no-logging
working-directory: test
- name: Generate TypeScript (JQuery)
run: |
rapicgen -v typescript JQuery ./OpenApi.${{ matrix.format }} JQuery --no-logging
working-directory: test
- name: Generate TypeScript (NestJS)
run: |
rapicgen -v typescript NestJS ./OpenApi.${{ matrix.format }} NestJS --no-logging
working-directory: test
- name: Generate TypeScript (Node)
run: |
rapicgen -v typescript Node ./OpenApi.${{ matrix.format }} Node --no-logging
working-directory: test
- name: Generate TypeScript (ReduxQuery)
run: |
rapicgen -v typescript ReduxQuery ./OpenApi.${{ matrix.format }} ReduxQuery --no-logging
working-directory: test
- name: Generate TypeScript (Rxjs)
run: |
rapicgen -v typescript Rxjs ./OpenApi.${{ matrix.format }} Rxjs --no-logging
working-directory: test