1
- # Created with package:mono_repo v3.1.0-beta.3
1
+ # Created with package:mono_repo v3.1.0
2
2
name : Dart CI
3
3
on :
4
4
push :
@@ -19,18 +19,36 @@ jobs:
19
19
name : mono_repo self validate
20
20
runs-on : ubuntu-latest
21
21
steps :
22
+ - name : Cache Pub hosted dependencies
23
+ uses : actions/cache@v2
24
+ with :
25
+ path : " ~/.pub-cache/hosted"
26
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:stable"
27
+ restore-keys : |
28
+ os:ubuntu-latest;pub-cache-hosted
29
+ os:ubuntu-latest
22
30
- uses : cedx/setup-dart@v2
23
31
with :
24
32
release-channel : stable
25
33
version : latest
26
34
- run : dart --version
27
35
- uses : actions/checkout@v2
28
- - run : pub global activate mono_repo 3.1.0-beta.3
36
+ - run : pub global activate mono_repo 3.1.0
29
37
- run : pub global run mono_repo generate --validate
30
38
job_002 :
31
39
name : " OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_annotation, json_serializable; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-warnings --fatal-infos .`]"
32
40
runs-on : ubuntu-latest
33
41
steps :
42
+ - name : Cache Pub hosted dependencies
43
+ uses : actions/cache@v2
44
+ with :
45
+ path : " ~/.pub-cache/hosted"
46
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example-json_annotation-json_serializable;commands:dartfmt-dartanalyzer_0"
47
+ restore-keys : |
48
+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example-json_annotation-json_serializable
49
+ os:ubuntu-latest;pub-cache-hosted;dart:dev
50
+ os:ubuntu-latest;pub-cache-hosted
51
+ os:ubuntu-latest
34
52
- uses : cedx/setup-dart@v2
35
53
with :
36
54
release-channel : dev
44
62
name : " OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_annotation, json_serializable; TASKS: `dartanalyzer --fatal-warnings .`"
45
63
runs-on : ubuntu-latest
46
64
steps :
65
+ - name : Cache Pub hosted dependencies
66
+ uses : actions/cache@v2
67
+ with :
68
+ path : " ~/.pub-cache/hosted"
69
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example-json_annotation-json_serializable;commands:dartanalyzer_1"
70
+ restore-keys : |
71
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example-json_annotation-json_serializable
72
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0
73
+ os:ubuntu-latest;pub-cache-hosted
74
+ os:ubuntu-latest
47
75
- uses : cedx/setup-dart@v2
48
76
with :
49
77
release-channel : stable
58
86
name : " OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test`"
59
87
runs-on : ubuntu-latest
60
88
steps :
89
+ - name : Cache Pub hosted dependencies
90
+ uses : actions/cache@v2
91
+ with :
92
+ path : " ~/.pub-cache/hosted"
93
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example-json_serializable;commands:test_0"
94
+ restore-keys : |
95
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example-json_serializable
96
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0
97
+ os:ubuntu-latest;pub-cache-hosted
98
+ os:ubuntu-latest
61
99
- uses : cedx/setup-dart@v2
62
100
with :
63
101
release-channel : stable
@@ -72,6 +110,16 @@ jobs:
72
110
name : " OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test`"
73
111
runs-on : ubuntu-latest
74
112
steps :
113
+ - name : Cache Pub hosted dependencies
114
+ uses : actions/cache@v2
115
+ with :
116
+ path : " ~/.pub-cache/hosted"
117
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example-json_serializable;commands:test_0"
118
+ restore-keys : |
119
+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example-json_serializable
120
+ os:ubuntu-latest;pub-cache-hosted;dart:dev
121
+ os:ubuntu-latest;pub-cache-hosted
122
+ os:ubuntu-latest
75
123
- uses : cedx/setup-dart@v2
76
124
with :
77
125
release-channel : dev
@@ -85,6 +133,16 @@ jobs:
85
133
name : " OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test --run-skipped -t presubmit-only test/ensure_build_test.dart`"
86
134
runs-on : ubuntu-latest
87
135
steps :
136
+ - name : Cache Pub hosted dependencies
137
+ uses : actions/cache@v2
138
+ with :
139
+ path : " ~/.pub-cache/hosted"
140
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example-json_serializable;commands:test_1"
141
+ restore-keys : |
142
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example-json_serializable
143
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0
144
+ os:ubuntu-latest;pub-cache-hosted
145
+ os:ubuntu-latest
88
146
- uses : cedx/setup-dart@v2
89
147
with :
90
148
release-channel : stable
@@ -99,6 +157,16 @@ jobs:
99
157
name : " OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test --run-skipped -t presubmit-only test/ensure_build_test.dart`"
100
158
runs-on : ubuntu-latest
101
159
steps :
160
+ - name : Cache Pub hosted dependencies
161
+ uses : actions/cache@v2
162
+ with :
163
+ path : " ~/.pub-cache/hosted"
164
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example-json_serializable;commands:test_1"
165
+ restore-keys : |
166
+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example-json_serializable
167
+ os:ubuntu-latest;pub-cache-hosted;dart:dev
168
+ os:ubuntu-latest;pub-cache-hosted
169
+ os:ubuntu-latest
102
170
- uses : cedx/setup-dart@v2
103
171
with :
104
172
release-channel : dev
@@ -112,6 +180,16 @@ jobs:
112
180
name : " OS: linux; SDK: 2.7.0; PKG: json_serializable; TASKS: `pub run test -p chrome`"
113
181
runs-on : ubuntu-latest
114
182
steps :
183
+ - name : Cache Pub hosted dependencies
184
+ uses : actions/cache@v2
185
+ with :
186
+ path : " ~/.pub-cache/hosted"
187
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:json_serializable;commands:test_2"
188
+ restore-keys : |
189
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:json_serializable
190
+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0
191
+ os:ubuntu-latest;pub-cache-hosted
192
+ os:ubuntu-latest
115
193
- uses : cedx/setup-dart@v2
116
194
with :
117
195
release-channel : stable
@@ -126,6 +204,16 @@ jobs:
126
204
name : " OS: linux; SDK: dev; PKG: json_serializable; TASKS: `pub run test -p chrome`"
127
205
runs-on : ubuntu-latest
128
206
steps :
207
+ - name : Cache Pub hosted dependencies
208
+ uses : actions/cache@v2
209
+ with :
210
+ path : " ~/.pub-cache/hosted"
211
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:json_serializable;commands:test_2"
212
+ restore-keys : |
213
+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:json_serializable
214
+ os:ubuntu-latest;pub-cache-hosted;dart:dev
215
+ os:ubuntu-latest;pub-cache-hosted
216
+ os:ubuntu-latest
129
217
- uses : cedx/setup-dart@v2
130
218
with :
131
219
release-channel : dev
0 commit comments