@@ -16,16 +16,16 @@ permissions: read-all
16
16
17
17
jobs :
18
18
job_001 :
19
- name : " unit_test; Dart 2.18.0; PKGS: dartfn, functions_framework_builder, integration_test; `dart test`"
19
+ name : " unit_test; linux; Dart 2.18.0; PKGS: dartfn, functions_framework_builder, gcp , integration_test; `dart test`"
20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
- name : Cache Pub hosted dependencies
23
23
uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
24
24
with :
25
25
path : " ~/.pub-cache/hosted"
26
- key : " os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:dartfn-functions_framework_builder-integration_test;commands:test_0"
26
+ key : " os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:dartfn-functions_framework_builder-gcp- integration_test;commands:test_0"
27
27
restore-keys : |
28
- os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:dartfn-functions_framework_builder-integration_test
28
+ os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:dartfn-functions_framework_builder-gcp- integration_test
29
29
os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0
30
30
os:ubuntu-latest;pub-cache-hosted
31
31
os:ubuntu-latest
54
54
run : dart test
55
55
if : " always() && steps.functions_framework_builder_pub_upgrade.conclusion == 'success'"
56
56
working-directory : functions_framework_builder
57
+ - id : gcp_pub_upgrade
58
+ name : gcp; dart pub upgrade
59
+ run : dart pub upgrade
60
+ if : " always() && steps.checkout.conclusion == 'success'"
61
+ working-directory : gcp
62
+ - name : gcp; dart test
63
+ run : dart test
64
+ if : " always() && steps.gcp_pub_upgrade.conclusion == 'success'"
65
+ working-directory : gcp
57
66
- id : integration_test_pub_upgrade
58
67
name : integration_test; dart pub upgrade
59
68
run : dart pub upgrade
64
73
if : " always() && steps.integration_test_pub_upgrade.conclusion == 'success'"
65
74
working-directory : integration_test
66
75
job_002 :
67
- name : " unit_test; Dart dev; PKGS: dartfn, functions_framework, integration_test; `dart test --run-skipped -t presubmit-only`"
76
+ name : " unit_test; linux; Dart 2.18.0; PKG: gcp; `./tool/docker_test_script.sh`"
77
+ runs-on : ubuntu-latest
78
+ steps :
79
+ - name : Cache Pub hosted dependencies
80
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
81
+ with :
82
+ path : " ~/.pub-cache/hosted"
83
+ key : " os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:gcp;commands:command"
84
+ restore-keys : |
85
+ os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0;packages:gcp
86
+ os:ubuntu-latest;pub-cache-hosted;sdk:2.18.0
87
+ os:ubuntu-latest;pub-cache-hosted
88
+ os:ubuntu-latest
89
+ - name : Setup Dart SDK
90
+ uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
91
+ with :
92
+ sdk : " 2.18.0"
93
+ - id : checkout
94
+ name : Checkout repository
95
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
96
+ - id : gcp_pub_upgrade
97
+ name : gcp; dart pub upgrade
98
+ run : dart pub upgrade
99
+ if : " always() && steps.checkout.conclusion == 'success'"
100
+ working-directory : gcp
101
+ - name : gcp; ./tool/docker_test_script.sh
102
+ run : ./tool/docker_test_script.sh
103
+ if : " always() && steps.gcp_pub_upgrade.conclusion == 'success'"
104
+ working-directory : gcp
105
+ job_003 :
106
+ name : " unit_test; linux; Dart dev; PKGS: dartfn, functions_framework, integration_test; `dart test --run-skipped -t presubmit-only`"
68
107
runs-on : ubuntu-latest
69
108
steps :
70
109
- name : Cache Pub hosted dependencies
@@ -111,17 +150,17 @@ jobs:
111
150
run : dart test --run-skipped -t presubmit-only
112
151
if : " always() && steps.integration_test_pub_upgrade.conclusion == 'success'"
113
152
working-directory : integration_test
114
- job_003 :
115
- name : " unit_test; Dart dev; PKGS: dartfn, functions_framework_builder, integration_test; `dart test`"
153
+ job_004 :
154
+ name : " unit_test; linux; Dart dev; PKGS: dartfn, functions_framework_builder, gcp , integration_test; `dart test`"
116
155
runs-on : ubuntu-latest
117
156
steps :
118
157
- name : Cache Pub hosted dependencies
119
158
uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
120
159
with :
121
160
path : " ~/.pub-cache/hosted"
122
- key : " os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dartfn-functions_framework_builder-integration_test;commands:test_0"
161
+ key : " os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dartfn-functions_framework_builder-gcp- integration_test;commands:test_0"
123
162
restore-keys : |
124
- os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dartfn-functions_framework_builder-integration_test
163
+ os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:dartfn-functions_framework_builder-gcp- integration_test
125
164
os:ubuntu-latest;pub-cache-hosted;sdk:dev
126
165
os:ubuntu-latest;pub-cache-hosted
127
166
os:ubuntu-latest
@@ -150,6 +189,15 @@ jobs:
150
189
run : dart test
151
190
if : " always() && steps.functions_framework_builder_pub_upgrade.conclusion == 'success'"
152
191
working-directory : functions_framework_builder
192
+ - id : gcp_pub_upgrade
193
+ name : gcp; dart pub upgrade
194
+ run : dart pub upgrade
195
+ if : " always() && steps.checkout.conclusion == 'success'"
196
+ working-directory : gcp
197
+ - name : gcp; dart test
198
+ run : dart test
199
+ if : " always() && steps.gcp_pub_upgrade.conclusion == 'success'"
200
+ working-directory : gcp
153
201
- id : integration_test_pub_upgrade
154
202
name : integration_test; dart pub upgrade
155
203
run : dart pub upgrade
@@ -159,7 +207,87 @@ jobs:
159
207
run : dart test
160
208
if : " always() && steps.integration_test_pub_upgrade.conclusion == 'success'"
161
209
working-directory : integration_test
162
- job_004 :
210
+ job_005 :
211
+ name : " unit_test; macos; Dart 2.18.0; PKG: gcp; `dart test`"
212
+ runs-on : macos-latest
213
+ steps :
214
+ - name : Cache Pub hosted dependencies
215
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
216
+ with :
217
+ path : " ~/.pub-cache/hosted"
218
+ key : " os:macos-latest;pub-cache-hosted;sdk:2.18.0;packages:gcp;commands:test_0"
219
+ restore-keys : |
220
+ os:macos-latest;pub-cache-hosted;sdk:2.18.0;packages:gcp
221
+ os:macos-latest;pub-cache-hosted;sdk:2.18.0
222
+ os:macos-latest;pub-cache-hosted
223
+ os:macos-latest
224
+ - name : Setup Dart SDK
225
+ uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
226
+ with :
227
+ sdk : " 2.18.0"
228
+ - id : checkout
229
+ name : Checkout repository
230
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
231
+ - id : gcp_pub_upgrade
232
+ name : gcp; dart pub upgrade
233
+ run : dart pub upgrade
234
+ if : " always() && steps.checkout.conclusion == 'success'"
235
+ working-directory : gcp
236
+ - name : gcp; dart test
237
+ run : dart test
238
+ if : " always() && steps.gcp_pub_upgrade.conclusion == 'success'"
239
+ working-directory : gcp
240
+ job_006 :
241
+ name : " unit_test; macos; Dart dev; PKG: gcp; `dart test`"
242
+ runs-on : macos-latest
243
+ steps :
244
+ - name : Cache Pub hosted dependencies
245
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
246
+ with :
247
+ path : " ~/.pub-cache/hosted"
248
+ key : " os:macos-latest;pub-cache-hosted;sdk:dev;packages:gcp;commands:test_0"
249
+ restore-keys : |
250
+ os:macos-latest;pub-cache-hosted;sdk:dev;packages:gcp
251
+ os:macos-latest;pub-cache-hosted;sdk:dev
252
+ os:macos-latest;pub-cache-hosted
253
+ os:macos-latest
254
+ - name : Setup Dart SDK
255
+ uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
256
+ with :
257
+ sdk : dev
258
+ - id : checkout
259
+ name : Checkout repository
260
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
261
+ - id : gcp_pub_upgrade
262
+ name : gcp; dart pub upgrade
263
+ run : dart pub upgrade
264
+ if : " always() && steps.checkout.conclusion == 'success'"
265
+ working-directory : gcp
266
+ - name : gcp; dart test
267
+ run : dart test
268
+ if : " always() && steps.gcp_pub_upgrade.conclusion == 'success'"
269
+ working-directory : gcp
270
+ job_007 :
271
+ name : " unit_test; windows; Dart dev; PKG: gcp; `dart test`"
272
+ runs-on : windows-latest
273
+ steps :
274
+ - name : Setup Dart SDK
275
+ uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
276
+ with :
277
+ sdk : dev
278
+ - id : checkout
279
+ name : Checkout repository
280
+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
281
+ - id : gcp_pub_upgrade
282
+ name : gcp; dart pub upgrade
283
+ run : dart pub upgrade
284
+ if : " always() && steps.checkout.conclusion == 'success'"
285
+ working-directory : gcp
286
+ - name : gcp; dart test
287
+ run : dart test
288
+ if : " always() && steps.gcp_pub_upgrade.conclusion == 'success'"
289
+ working-directory : gcp
290
+ job_008 :
163
291
name : Notify failure
164
292
runs-on : ubuntu-latest
165
293
if : " (github.event_name == 'push' || github.event_name == 'schedule') && failure()"
@@ -174,3 +302,7 @@ jobs:
174
302
- job_001
175
303
- job_002
176
304
- job_003
305
+ - job_004
306
+ - job_005
307
+ - job_006
308
+ - job_007
0 commit comments