-
Notifications
You must be signed in to change notification settings - Fork 54
493 lines (492 loc) · 26.2 KB
/
lint.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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# Created with package:mono_repo v6.6.1
name: Dart Lint CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
defaults:
run:
shell: bash
env:
PUB_ENVIRONMENT: bot.github
permissions: read-all
jobs:
job_001:
name: mono_repo self validate
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
with:
sdk: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- name: mono_repo self validate
run: dart pub global activate mono_repo 6.6.1
- name: mono_repo self validate
run: dart pub global run mono_repo generate --validate
job_002:
name: "analyze_format; Dart 3.0.0; PKGS: dartfn, dartfn/templates/cloudevent, dartfn/templates/helloworld, dartfn/templates/json, examples/fullstack/backend, examples/fullstack/frontend-cli, examples/hello, examples/json, examples/protobuf_firestore, examples/raw_cloudevent, functions_framework, functions_framework_builder, google_cloud; `dart analyze`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:dartfn-dartfn/templates/cloudevent-dartfn/templates/helloworld-dartfn/templates/json-examples/fullstack/backend-examples/fullstack/frontend-cli-examples/hello-examples/json-examples/protobuf_firestore-examples/raw_cloudevent-functions_framework-functions_framework_builder-google_cloud;commands:analyze_1"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:dartfn-dartfn/templates/cloudevent-dartfn/templates/helloworld-dartfn/templates/json-examples/fullstack/backend-examples/fullstack/frontend-cli-examples/hello-examples/json-examples/protobuf_firestore-examples/raw_cloudevent-functions_framework-functions_framework_builder-google_cloud
os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
with:
sdk: "3.0.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: dartfn_pub_upgrade
name: dartfn; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn
- name: dartfn; dart analyze
run: dart analyze
if: "always() && steps.dartfn_pub_upgrade.conclusion == 'success'"
working-directory: dartfn
- id: dartfn_templates_cloudevent_pub_upgrade
name: dartfn/templates/cloudevent; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn/templates/cloudevent
- name: dartfn/templates/cloudevent; dart analyze
run: dart analyze
if: "always() && steps.dartfn_templates_cloudevent_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/cloudevent
- id: dartfn_templates_helloworld_pub_upgrade
name: dartfn/templates/helloworld; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn/templates/helloworld
- name: dartfn/templates/helloworld; dart analyze
run: dart analyze
if: "always() && steps.dartfn_templates_helloworld_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/helloworld
- id: dartfn_templates_json_pub_upgrade
name: dartfn/templates/json; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn/templates/json
- name: dartfn/templates/json; dart analyze
run: dart analyze
if: "always() && steps.dartfn_templates_json_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/json
- id: examples_fullstack_backend_pub_upgrade
name: examples/fullstack/backend; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/fullstack/backend
- name: examples/fullstack/backend; dart analyze
run: dart analyze
if: "always() && steps.examples_fullstack_backend_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/backend
- id: examples_fullstack_frontend-cli_pub_upgrade
name: "examples/fullstack/frontend-cli; dart pub upgrade"
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/fullstack/frontend-cli
- name: "examples/fullstack/frontend-cli; dart analyze"
run: dart analyze
if: "always() && steps.examples_fullstack_frontend-cli_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/frontend-cli
- id: examples_hello_pub_upgrade
name: examples/hello; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/hello
- name: examples/hello; dart analyze
run: dart analyze
if: "always() && steps.examples_hello_pub_upgrade.conclusion == 'success'"
working-directory: examples/hello
- id: examples_json_pub_upgrade
name: examples/json; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/json
- name: examples/json; dart analyze
run: dart analyze
if: "always() && steps.examples_json_pub_upgrade.conclusion == 'success'"
working-directory: examples/json
- id: examples_protobuf_firestore_pub_upgrade
name: examples/protobuf_firestore; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/protobuf_firestore
- name: examples/protobuf_firestore; dart analyze
run: dart analyze
if: "always() && steps.examples_protobuf_firestore_pub_upgrade.conclusion == 'success'"
working-directory: examples/protobuf_firestore
- id: examples_raw_cloudevent_pub_upgrade
name: examples/raw_cloudevent; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/raw_cloudevent
- name: examples/raw_cloudevent; dart analyze
run: dart analyze
if: "always() && steps.examples_raw_cloudevent_pub_upgrade.conclusion == 'success'"
working-directory: examples/raw_cloudevent
- id: functions_framework_pub_upgrade
name: functions_framework; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: functions_framework
- name: functions_framework; dart analyze
run: dart analyze
if: "always() && steps.functions_framework_pub_upgrade.conclusion == 'success'"
working-directory: functions_framework
- id: functions_framework_builder_pub_upgrade
name: functions_framework_builder; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: functions_framework_builder
- name: functions_framework_builder; dart analyze
run: dart analyze
if: "always() && steps.functions_framework_builder_pub_upgrade.conclusion == 'success'"
working-directory: functions_framework_builder
- id: google_cloud_pub_upgrade
name: google_cloud; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: google_cloud
- name: google_cloud; dart analyze
run: dart analyze
if: "always() && steps.google_cloud_pub_upgrade.conclusion == 'success'"
working-directory: google_cloud
job_003:
name: "analyze_format; Dart dev; PKGS: dartfn, dartfn/templates/cloudevent, dartfn/templates/helloworld, dartfn/templates/json, examples/fullstack/backend, examples/fullstack/frontend-cli, examples/hello, examples/json, examples/protobuf_firestore, examples/raw_cloudevent, functions_framework, functions_framework_builder, google_cloud, integration_test; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dartfn-dartfn/templates/cloudevent-dartfn/templates/helloworld-dartfn/templates/json-examples/fullstack/backend-examples/fullstack/frontend-cli-examples/hello-examples/json-examples/protobuf_firestore-examples/raw_cloudevent-functions_framework-functions_framework_builder-google_cloud-integration_test;commands:format-analyze_0"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dartfn-dartfn/templates/cloudevent-dartfn/templates/helloworld-dartfn/templates/json-examples/fullstack/backend-examples/fullstack/frontend-cli-examples/hello-examples/json-examples/protobuf_firestore-examples/raw_cloudevent-functions_framework-functions_framework_builder-google_cloud-integration_test
os:ubuntu-latest;pub-cache-hosted;sdk:dev
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
with:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: dartfn_pub_upgrade
name: dartfn; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn
- name: "dartfn; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.dartfn_pub_upgrade.conclusion == 'success'"
working-directory: dartfn
- name: "dartfn; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.dartfn_pub_upgrade.conclusion == 'success'"
working-directory: dartfn
- id: dartfn_templates_cloudevent_pub_upgrade
name: dartfn/templates/cloudevent; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn/templates/cloudevent
- name: "dartfn/templates/cloudevent; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.dartfn_templates_cloudevent_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/cloudevent
- name: "dartfn/templates/cloudevent; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.dartfn_templates_cloudevent_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/cloudevent
- id: dartfn_templates_helloworld_pub_upgrade
name: dartfn/templates/helloworld; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn/templates/helloworld
- name: "dartfn/templates/helloworld; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.dartfn_templates_helloworld_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/helloworld
- name: "dartfn/templates/helloworld; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.dartfn_templates_helloworld_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/helloworld
- id: dartfn_templates_json_pub_upgrade
name: dartfn/templates/json; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dartfn/templates/json
- name: "dartfn/templates/json; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.dartfn_templates_json_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/json
- name: "dartfn/templates/json; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.dartfn_templates_json_pub_upgrade.conclusion == 'success'"
working-directory: dartfn/templates/json
- id: examples_fullstack_backend_pub_upgrade
name: examples/fullstack/backend; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/fullstack/backend
- name: "examples/fullstack/backend; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.examples_fullstack_backend_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/backend
- name: "examples/fullstack/backend; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.examples_fullstack_backend_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/backend
- id: examples_fullstack_frontend-cli_pub_upgrade
name: "examples/fullstack/frontend-cli; dart pub upgrade"
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/fullstack/frontend-cli
- name: "examples/fullstack/frontend-cli; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.examples_fullstack_frontend-cli_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/frontend-cli
- name: "examples/fullstack/frontend-cli; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.examples_fullstack_frontend-cli_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/frontend-cli
- id: examples_hello_pub_upgrade
name: examples/hello; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/hello
- name: "examples/hello; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.examples_hello_pub_upgrade.conclusion == 'success'"
working-directory: examples/hello
- name: "examples/hello; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.examples_hello_pub_upgrade.conclusion == 'success'"
working-directory: examples/hello
- id: examples_json_pub_upgrade
name: examples/json; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/json
- name: "examples/json; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.examples_json_pub_upgrade.conclusion == 'success'"
working-directory: examples/json
- name: "examples/json; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.examples_json_pub_upgrade.conclusion == 'success'"
working-directory: examples/json
- id: examples_protobuf_firestore_pub_upgrade
name: examples/protobuf_firestore; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/protobuf_firestore
- name: "examples/protobuf_firestore; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.examples_protobuf_firestore_pub_upgrade.conclusion == 'success'"
working-directory: examples/protobuf_firestore
- name: "examples/protobuf_firestore; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.examples_protobuf_firestore_pub_upgrade.conclusion == 'success'"
working-directory: examples/protobuf_firestore
- id: examples_raw_cloudevent_pub_upgrade
name: examples/raw_cloudevent; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/raw_cloudevent
- name: "examples/raw_cloudevent; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.examples_raw_cloudevent_pub_upgrade.conclusion == 'success'"
working-directory: examples/raw_cloudevent
- name: "examples/raw_cloudevent; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.examples_raw_cloudevent_pub_upgrade.conclusion == 'success'"
working-directory: examples/raw_cloudevent
- id: functions_framework_pub_upgrade
name: functions_framework; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: functions_framework
- name: "functions_framework; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.functions_framework_pub_upgrade.conclusion == 'success'"
working-directory: functions_framework
- name: "functions_framework; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.functions_framework_pub_upgrade.conclusion == 'success'"
working-directory: functions_framework
- id: functions_framework_builder_pub_upgrade
name: functions_framework_builder; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: functions_framework_builder
- name: "functions_framework_builder; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.functions_framework_builder_pub_upgrade.conclusion == 'success'"
working-directory: functions_framework_builder
- name: "functions_framework_builder; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.functions_framework_builder_pub_upgrade.conclusion == 'success'"
working-directory: functions_framework_builder
- id: google_cloud_pub_upgrade
name: google_cloud; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: google_cloud
- name: "google_cloud; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.google_cloud_pub_upgrade.conclusion == 'success'"
working-directory: google_cloud
- name: "google_cloud; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.google_cloud_pub_upgrade.conclusion == 'success'"
working-directory: google_cloud
- id: integration_test_pub_upgrade
name: integration_test; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: integration_test
- name: "integration_test; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.integration_test_pub_upgrade.conclusion == 'success'"
working-directory: integration_test
- name: "integration_test; dart analyze --fatal-infos"
run: dart analyze --fatal-infos
if: "always() && steps.integration_test_pub_upgrade.conclusion == 'success'"
working-directory: integration_test
job_004:
name: "analyze_format; Dart dev; PKG: integration_test; `dart analyze`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_test;commands:analyze_1"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:integration_test
os:ubuntu-latest;pub-cache-hosted;sdk:dev
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
with:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: integration_test_pub_upgrade
name: integration_test; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: integration_test
- name: integration_test; dart analyze
run: dart analyze
if: "always() && steps.integration_test_pub_upgrade.conclusion == 'success'"
working-directory: integration_test
job_005:
name: "analyze_format; Flutter master; PKG: examples/fullstack/frontend; `dart format --output=none --set-exit-if-changed .`, `flutter analyze --fatal-infos`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:master;packages:examples/fullstack/frontend;commands:format-analyze_2"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:master;packages:examples/fullstack/frontend
os:ubuntu-latest;pub-cache-hosted;sdk:master
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Flutter SDK
uses: subosito/flutter-action@3d804929922b667a63a229bc59037807f969e885
with:
channel: master
- id: checkout
name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: examples_fullstack_frontend_pub_upgrade
name: examples/fullstack/frontend; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/fullstack/frontend
- name: "examples/fullstack/frontend; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.examples_fullstack_frontend_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/frontend
- name: "examples/fullstack/frontend; flutter analyze --fatal-infos"
run: flutter analyze --fatal-infos
if: "always() && steps.examples_fullstack_frontend_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/frontend
job_006:
name: "analyze_format; Flutter stable; PKG: examples/fullstack/frontend; `flutter analyze`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:examples/fullstack/frontend;commands:analyze_3"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:examples/fullstack/frontend
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Flutter SDK
uses: subosito/flutter-action@3d804929922b667a63a229bc59037807f969e885
with:
channel: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: examples_fullstack_frontend_pub_upgrade
name: examples/fullstack/frontend; flutter pub upgrade
run: flutter pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: examples/fullstack/frontend
- name: examples/fullstack/frontend; flutter analyze
run: flutter analyze
if: "always() && steps.examples_fullstack_frontend_pub_upgrade.conclusion == 'success'"
working-directory: examples/fullstack/frontend
job_007:
name: Notify failure
runs-on: ubuntu-latest
if: "(github.event_name == 'push' || github.event_name == 'schedule') && failure()"
steps:
- run: |
curl -H "Content-Type: application/json" -X POST -d \
"{'text':'Build failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
"${CHAT_WEBHOOK_URL}"
env:
CHAT_WEBHOOK_URL: "${{ secrets.CHAT_WEBHOOK_URL }}"
needs:
- job_001
- job_002
- job_003
- job_004
- job_005
- job_006