1- # Created with package:mono_repo v3.1 .0
1+ # Created with package:mono_repo v3.3 .0
22name : Dart CI
33on :
44 push :
3333 version : latest
3434 - run : dart --version
3535 - uses : actions/checkout@v2
36- - run : pub global activate mono_repo 3.1 .0
36+ - run : pub global activate mono_repo 3.3 .0
3737 - run : pub global run mono_repo generate --validate
3838 job_002 :
3939 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 .`]"
@@ -106,6 +106,10 @@ jobs:
106106 PKGS : _test_yaml checked_yaml example json_serializable
107107 TRAVIS_OS_NAME : linux
108108 run : tool/ci.sh test_0
109+ needs :
110+ - job_001
111+ - job_002
112+ - job_003
109113 job_005 :
110114 name : " OS: linux; SDK: dev; PKGS: _test_yaml, checked_yaml, example, json_serializable; TASKS: `pub run test`"
111115 runs-on : ubuntu-latest
@@ -129,17 +133,21 @@ jobs:
129133 PKGS : _test_yaml checked_yaml example json_serializable
130134 TRAVIS_OS_NAME : linux
131135 run : tool/ci.sh test_0
132- job_006 :
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`"
136+ needs :
137+ - job_001
138+ - job_002
139+ - job_003
140+ job_008 :
141+ name : " OS: linux; SDK: 2.7.0; PKG: json_serializable; TASKS: `pub run test -p chrome`"
134142 runs-on : ubuntu-latest
135143 steps :
136144 - name : Cache Pub hosted dependencies
137145 uses : actions/cache@v2
138146 with :
139147 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 "
148+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:json_serializable;commands:test_2 "
141149 restore-keys : |
142- os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example- json_serializable
150+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:json_serializable
143151 os:ubuntu-latest;pub-cache-hosted;dart:2.7.0
144152 os:ubuntu-latest;pub-cache-hosted
145153 os:ubuntu-latest
@@ -150,20 +158,24 @@ jobs:
150158 - run : dart --version
151159 - uses : actions/checkout@v2
152160 - env :
153- PKGS : _test_yaml checked_yaml example json_serializable
161+ PKGS : json_serializable
154162 TRAVIS_OS_NAME : linux
155- run : tool/ci.sh test_1
156- job_007 :
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`"
163+ run : tool/ci.sh test_2
164+ needs :
165+ - job_001
166+ - job_002
167+ - job_003
168+ job_009 :
169+ name : " OS: linux; SDK: dev; PKG: json_serializable; TASKS: `pub run test -p chrome`"
158170 runs-on : ubuntu-latest
159171 steps :
160172 - name : Cache Pub hosted dependencies
161173 uses : actions/cache@v2
162174 with :
163175 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 "
176+ key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:json_serializable;commands:test_2 "
165177 restore-keys : |
166- os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example- json_serializable
178+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:json_serializable
167179 os:ubuntu-latest;pub-cache-hosted;dart:dev
168180 os:ubuntu-latest;pub-cache-hosted
169181 os:ubuntu-latest
@@ -173,20 +185,24 @@ jobs:
173185 - run : dart --version
174186 - uses : actions/checkout@v2
175187 - env :
176- PKGS : _test_yaml checked_yaml example json_serializable
188+ PKGS : json_serializable
177189 TRAVIS_OS_NAME : linux
178- run : tool/ci.sh test_1
179- job_008 :
180- name : " OS: linux; SDK: 2.7.0; PKG: json_serializable; TASKS: `pub run test -p chrome`"
190+ run : tool/ci.sh test_2
191+ needs :
192+ - job_001
193+ - job_002
194+ - job_003
195+ job_006 :
196+ 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`"
181197 runs-on : ubuntu-latest
182198 steps :
183199 - name : Cache Pub hosted dependencies
184200 uses : actions/cache@v2
185201 with :
186202 path : " ~/.pub-cache/hosted"
187- key : " os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:json_serializable;commands:test_2 "
203+ key : " os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example- json_serializable;commands:test_1 "
188204 restore-keys : |
189- os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:json_serializable
205+ os:ubuntu-latest;pub-cache-hosted;dart:2.7.0;packages:_test_yaml-checked_yaml-example- json_serializable
190206 os:ubuntu-latest;pub-cache-hosted;dart:2.7.0
191207 os:ubuntu-latest;pub-cache-hosted
192208 os:ubuntu-latest
@@ -197,20 +213,25 @@ jobs:
197213 - run : dart --version
198214 - uses : actions/checkout@v2
199215 - env :
200- PKGS : json_serializable
216+ PKGS : _test_yaml checked_yaml example json_serializable
201217 TRAVIS_OS_NAME : linux
202- run : tool/ci.sh test_2
203- job_009 :
204- name : " OS: linux; SDK: dev; PKG: json_serializable; TASKS: `pub run test -p chrome`"
218+ run : tool/ci.sh test_1
219+ needs :
220+ - job_004
221+ - job_005
222+ - job_008
223+ - job_009
224+ job_007 :
225+ 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`"
205226 runs-on : ubuntu-latest
206227 steps :
207228 - name : Cache Pub hosted dependencies
208229 uses : actions/cache@v2
209230 with :
210231 path : " ~/.pub-cache/hosted"
211- key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:json_serializable;commands:test_2 "
232+ key : " os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example- json_serializable;commands:test_1 "
212233 restore-keys : |
213- os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:json_serializable
234+ os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_yaml-checked_yaml-example- json_serializable
214235 os:ubuntu-latest;pub-cache-hosted;dart:dev
215236 os:ubuntu-latest;pub-cache-hosted
216237 os:ubuntu-latest
@@ -220,6 +241,11 @@ jobs:
220241 - run : dart --version
221242 - uses : actions/checkout@v2
222243 - env :
223- PKGS : json_serializable
244+ PKGS : _test_yaml checked_yaml example json_serializable
224245 TRAVIS_OS_NAME : linux
225- run : tool/ci.sh test_2
246+ run : tool/ci.sh test_1
247+ needs :
248+ - job_004
249+ - job_005
250+ - job_008
251+ - job_009
0 commit comments