1- # Created with package:mono_repo v3.1.0-beta.3
1+ # Created with package:mono_repo v3.1.0
22name : Dart CI
33on :
44 push :
@@ -19,18 +19,36 @@ jobs:
1919 name : mono_repo self validate
2020 runs-on : ubuntu-latest
2121 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
2230 - uses : cedx/setup-dart@v2
2331 with :
2432 release-channel : stable
2533 version : latest
2634 - run : dart --version
2735 - 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
2937 - run : pub global run mono_repo generate --validate
3038 job_002 :
3139 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 .`]"
3240 runs-on : ubuntu-latest
3341 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
3452 - uses : cedx/setup-dart@v2
3553 with :
3654 release-channel : dev
4462 name : " OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_annotation, json_serializable; TASKS: `dartanalyzer --fatal-warnings .`"
4563 runs-on : ubuntu-latest
4664 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
4775 - uses : cedx/setup-dart@v2
4876 with :
4977 release-channel : stable
5886 name : " OS: linux; SDK: 2.7.0; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test`"
5987 runs-on : ubuntu-latest
6088 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
6199 - uses : cedx/setup-dart@v2
62100 with :
63101 release-channel : stable
@@ -72,6 +110,16 @@ jobs:
72110 name : " OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test`"
73111 runs-on : ubuntu-latest
74112 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
75123 - uses : cedx/setup-dart@v2
76124 with :
77125 release-channel : dev
@@ -85,6 +133,16 @@ jobs:
85133 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`"
86134 runs-on : ubuntu-latest
87135 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
88146 - uses : cedx/setup-dart@v2
89147 with :
90148 release-channel : stable
@@ -99,6 +157,16 @@ jobs:
99157 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`"
100158 runs-on : ubuntu-latest
101159 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
102170 - uses : cedx/setup-dart@v2
103171 with :
104172 release-channel : dev
@@ -112,6 +180,16 @@ jobs:
112180 name : " OS: linux; SDK: 2.7.0; PKG: json_serializable; TASKS: `pub run test -p chrome`"
113181 runs-on : ubuntu-latest
114182 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
115193 - uses : cedx/setup-dart@v2
116194 with :
117195 release-channel : stable
@@ -126,6 +204,16 @@ jobs:
126204 name : " OS: linux; SDK: dev; PKG: json_serializable; TASKS: `pub run test -p chrome`"
127205 runs-on : ubuntu-latest
128206 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
129217 - uses : cedx/setup-dart@v2
130218 with :
131219 release-channel : dev
0 commit comments