1
- # Created with package:mono_repo v3.1.0-beta.3
1
+ # Created with package:mono_repo v3.3.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.3.0
29
37
- run : pub global run mono_repo generate --validate
30
38
job_002 :
31
39
name : " OS: linux; SDK: dev; PKGS: _test_annotations, example, example_usage, source_gen; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos --fatal-warnings .`]"
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_annotations-example-example_usage-source_gen;commands:dartfmt-dartanalyzer_0"
47
+ restore-keys : |
48
+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_annotations-example-example_usage-source_gen
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.10.0; PKGS: _test_annotations, example, example_usage, source_gen; 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.10.0;packages:_test_annotations-example-example_usage-source_gen;commands:dartanalyzer_1"
70
+ restore-keys : |
71
+ os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:_test_annotations-example-example_usage-source_gen
72
+ os:ubuntu-latest;pub-cache-hosted;dart:2.10.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: dev; PKG: example_usage; TASKS: `pub run test --run-skipped`"
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:dev;packages:example_usage;commands:test_0"
94
+ restore-keys : |
95
+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:example_usage
96
+ os:ubuntu-latest;pub-cache-hosted;dart:dev
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 : dev
@@ -67,10 +105,24 @@ jobs:
67
105
PKGS : example_usage
68
106
TRAVIS_OS_NAME : linux
69
107
run : tool/ci.sh test_0
108
+ needs :
109
+ - job_001
110
+ - job_002
111
+ - job_003
70
112
job_005 :
71
113
name : " OS: linux; SDK: 2.10.0; PKG: example_usage; TASKS: `pub run test --run-skipped`"
72
114
runs-on : ubuntu-latest
73
115
steps :
116
+ - name : Cache Pub hosted dependencies
117
+ uses : actions/cache@v2
118
+ with :
119
+ path : " ~/.pub-cache/hosted"
120
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:example_usage;commands:test_0"
121
+ restore-keys : |
122
+ os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:example_usage
123
+ os:ubuntu-latest;pub-cache-hosted;dart:2.10.0
124
+ os:ubuntu-latest;pub-cache-hosted
125
+ os:ubuntu-latest
74
126
- uses : cedx/setup-dart@v2
75
127
with :
76
128
release-channel : stable
@@ -81,10 +133,24 @@ jobs:
81
133
PKGS : example_usage
82
134
TRAVIS_OS_NAME : linux
83
135
run : tool/ci.sh test_0
136
+ needs :
137
+ - job_001
138
+ - job_002
139
+ - job_003
84
140
job_006 :
85
141
name : " OS: linux; SDK: 2.10.0; PKG: source_gen; TASKS: `pub run test`"
86
142
runs-on : ubuntu-latest
87
143
steps :
144
+ - name : Cache Pub hosted dependencies
145
+ uses : actions/cache@v2
146
+ with :
147
+ path : " ~/.pub-cache/hosted"
148
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:source_gen;commands:test_1"
149
+ restore-keys : |
150
+ os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:source_gen
151
+ os:ubuntu-latest;pub-cache-hosted;dart:2.10.0
152
+ os:ubuntu-latest;pub-cache-hosted
153
+ os:ubuntu-latest
88
154
- uses : cedx/setup-dart@v2
89
155
with :
90
156
release-channel : stable
@@ -95,10 +161,24 @@ jobs:
95
161
PKGS : source_gen
96
162
TRAVIS_OS_NAME : linux
97
163
run : tool/ci.sh test_1
164
+ needs :
165
+ - job_001
166
+ - job_002
167
+ - job_003
98
168
job_007 :
99
169
name : " OS: linux; SDK: dev; PKG: source_gen; TASKS: `pub run test`"
100
170
runs-on : ubuntu-latest
101
171
steps :
172
+ - name : Cache Pub hosted dependencies
173
+ uses : actions/cache@v2
174
+ with :
175
+ path : " ~/.pub-cache/hosted"
176
+ key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:source_gen;commands:test_1"
177
+ restore-keys : |
178
+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:source_gen
179
+ os:ubuntu-latest;pub-cache-hosted;dart:dev
180
+ os:ubuntu-latest;pub-cache-hosted
181
+ os:ubuntu-latest
102
182
- uses : cedx/setup-dart@v2
103
183
with :
104
184
release-channel : dev
@@ -108,3 +188,7 @@ jobs:
108
188
PKGS : source_gen
109
189
TRAVIS_OS_NAME : linux
110
190
run : tool/ci.sh test_1
191
+ needs :
192
+ - job_001
193
+ - job_002
194
+ - job_003
0 commit comments