Skip to content

Commit dbd58a4

Browse files
authored
Add a GitHub Actions workflow for the homebrew Dart code (#96)
* Add a GitHub Actions workflow for the Dart code * Add package:test * Add a placeholder test
1 parent b7b8c8b commit dbd58a4

File tree

4 files changed

+289
-0
lines changed

4 files changed

+289
-0
lines changed

.github/workflows/test-package.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Dart CI
2+
3+
on:
4+
# Run on PRs and pushes to the default branch.
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
12+
env:
13+
PUB_ENVIRONMENT: bot.github
14+
15+
jobs:
16+
ci:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
sdk: [dev, stable]
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: dart-lang/setup-dart@v1.2
25+
with:
26+
sdk: ${{ matrix.sdk }}
27+
- id: install
28+
name: Install dependencies
29+
run: dart pub get
30+
- name: Check formatting
31+
run: dart format --output=none --set-exit-if-changed .
32+
if: always() && steps.install.outcome == 'success'
33+
- name: Analyze code
34+
run: dart analyze --fatal-infos
35+
if: always() && steps.install.outcome == 'success'
36+
- name: Run VM tests
37+
run: dart test --platform vm
38+
if: always() && steps.install.outcome == 'success'

pubspec.lock

+245
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ packages:
88
url: "https://pub.dartlang.org"
99
source: hosted
1010
version: "0.1.9"
11+
_fe_analyzer_shared:
12+
dependency: transitive
13+
description:
14+
name: _fe_analyzer_shared
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "22.0.0"
18+
analyzer:
19+
dependency: transitive
20+
description:
21+
name: analyzer
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "1.7.2"
1125
args:
1226
dependency: "direct main"
1327
description:
@@ -22,20 +36,69 @@ packages:
2236
url: "https://pub.dartlang.org"
2337
source: hosted
2438
version: "2.7.0"
39+
boolean_selector:
40+
dependency: transitive
41+
description:
42+
name: boolean_selector
43+
url: "https://pub.dartlang.org"
44+
source: hosted
45+
version: "2.1.0"
2546
charcode:
2647
dependency: transitive
2748
description:
2849
name: charcode
2950
url: "https://pub.dartlang.org"
3051
source: hosted
3152
version: "1.3.1"
53+
cli_util:
54+
dependency: transitive
55+
description:
56+
name: cli_util
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "0.3.3"
3260
collection:
3361
dependency: transitive
3462
description:
3563
name: collection
3664
url: "https://pub.dartlang.org"
3765
source: hosted
3866
version: "1.15.0"
67+
convert:
68+
dependency: transitive
69+
description:
70+
name: convert
71+
url: "https://pub.dartlang.org"
72+
source: hosted
73+
version: "3.0.1"
74+
coverage:
75+
dependency: transitive
76+
description:
77+
name: coverage
78+
url: "https://pub.dartlang.org"
79+
source: hosted
80+
version: "0.15.2"
81+
crypto:
82+
dependency: transitive
83+
description:
84+
name: crypto
85+
url: "https://pub.dartlang.org"
86+
source: hosted
87+
version: "3.0.1"
88+
file:
89+
dependency: transitive
90+
description:
91+
name: file
92+
url: "https://pub.dartlang.org"
93+
source: hosted
94+
version: "6.1.2"
95+
glob:
96+
dependency: transitive
97+
description:
98+
name: glob
99+
url: "https://pub.dartlang.org"
100+
source: hosted
101+
version: "2.0.1"
39102
googleapis:
40103
dependency: "direct main"
41104
description:
@@ -50,34 +113,153 @@ packages:
50113
url: "https://pub.dartlang.org"
51114
source: hosted
52115
version: "0.11.3+17"
116+
http_multi_server:
117+
dependency: transitive
118+
description:
119+
name: http_multi_server
120+
url: "https://pub.dartlang.org"
121+
source: hosted
122+
version: "3.0.1"
53123
http_parser:
54124
dependency: transitive
55125
description:
56126
name: http_parser
57127
url: "https://pub.dartlang.org"
58128
source: hosted
59129
version: "3.1.4"
130+
io:
131+
dependency: transitive
132+
description:
133+
name: io
134+
url: "https://pub.dartlang.org"
135+
source: hosted
136+
version: "1.0.3"
137+
js:
138+
dependency: transitive
139+
description:
140+
name: js
141+
url: "https://pub.dartlang.org"
142+
source: hosted
143+
version: "0.6.3"
60144
lints:
61145
dependency: "direct dev"
62146
description:
63147
name: lints
64148
url: "https://pub.dartlang.org"
65149
source: hosted
66150
version: "1.0.1"
151+
logging:
152+
dependency: transitive
153+
description:
154+
name: logging
155+
url: "https://pub.dartlang.org"
156+
source: hosted
157+
version: "1.0.1"
158+
matcher:
159+
dependency: transitive
160+
description:
161+
name: matcher
162+
url: "https://pub.dartlang.org"
163+
source: hosted
164+
version: "0.12.10"
67165
meta:
68166
dependency: transitive
69167
description:
70168
name: meta
71169
url: "https://pub.dartlang.org"
72170
source: hosted
73171
version: "1.4.0"
172+
mime:
173+
dependency: transitive
174+
description:
175+
name: mime
176+
url: "https://pub.dartlang.org"
177+
source: hosted
178+
version: "1.0.0"
179+
node_preamble:
180+
dependency: transitive
181+
description:
182+
name: node_preamble
183+
url: "https://pub.dartlang.org"
184+
source: hosted
185+
version: "1.4.13"
186+
package_config:
187+
dependency: transitive
188+
description:
189+
name: package_config
190+
url: "https://pub.dartlang.org"
191+
source: hosted
192+
version: "2.0.0"
74193
path:
75194
dependency: "direct main"
76195
description:
77196
name: path
78197
url: "https://pub.dartlang.org"
79198
source: hosted
80199
version: "1.8.0"
200+
pedantic:
201+
dependency: transitive
202+
description:
203+
name: pedantic
204+
url: "https://pub.dartlang.org"
205+
source: hosted
206+
version: "1.11.1"
207+
pool:
208+
dependency: transitive
209+
description:
210+
name: pool
211+
url: "https://pub.dartlang.org"
212+
source: hosted
213+
version: "1.5.0"
214+
pub_semver:
215+
dependency: transitive
216+
description:
217+
name: pub_semver
218+
url: "https://pub.dartlang.org"
219+
source: hosted
220+
version: "2.0.0"
221+
shelf:
222+
dependency: transitive
223+
description:
224+
name: shelf
225+
url: "https://pub.dartlang.org"
226+
source: hosted
227+
version: "0.7.9"
228+
shelf_packages_handler:
229+
dependency: transitive
230+
description:
231+
name: shelf_packages_handler
232+
url: "https://pub.dartlang.org"
233+
source: hosted
234+
version: "2.0.1"
235+
shelf_static:
236+
dependency: transitive
237+
description:
238+
name: shelf_static
239+
url: "https://pub.dartlang.org"
240+
source: hosted
241+
version: "0.2.9+2"
242+
shelf_web_socket:
243+
dependency: transitive
244+
description:
245+
name: shelf_web_socket
246+
url: "https://pub.dartlang.org"
247+
source: hosted
248+
version: "0.2.4+1"
249+
source_map_stack_trace:
250+
dependency: transitive
251+
description:
252+
name: source_map_stack_trace
253+
url: "https://pub.dartlang.org"
254+
source: hosted
255+
version: "2.1.0"
256+
source_maps:
257+
dependency: transitive
258+
description:
259+
name: source_maps
260+
url: "https://pub.dartlang.org"
261+
source: hosted
262+
version: "0.10.10"
81263
source_span:
82264
dependency: transitive
83265
description:
@@ -92,6 +274,13 @@ packages:
92274
url: "https://pub.dartlang.org"
93275
source: hosted
94276
version: "1.10.0"
277+
stream_channel:
278+
dependency: transitive
279+
description:
280+
name: stream_channel
281+
url: "https://pub.dartlang.org"
282+
source: hosted
283+
version: "2.1.0"
95284
string_scanner:
96285
dependency: transitive
97286
description:
@@ -106,12 +295,68 @@ packages:
106295
url: "https://pub.dartlang.org"
107296
source: hosted
108297
version: "1.2.0"
298+
test:
299+
dependency: "direct main"
300+
description:
301+
name: test
302+
url: "https://pub.dartlang.org"
303+
source: hosted
304+
version: "1.16.5"
305+
test_api:
306+
dependency: transitive
307+
description:
308+
name: test_api
309+
url: "https://pub.dartlang.org"
310+
source: hosted
311+
version: "0.2.19"
312+
test_core:
313+
dependency: transitive
314+
description:
315+
name: test_core
316+
url: "https://pub.dartlang.org"
317+
source: hosted
318+
version: "0.3.15"
109319
typed_data:
110320
dependency: transitive
111321
description:
112322
name: typed_data
113323
url: "https://pub.dartlang.org"
114324
source: hosted
115325
version: "1.3.0"
326+
vm_service:
327+
dependency: transitive
328+
description:
329+
name: vm_service
330+
url: "https://pub.dartlang.org"
331+
source: hosted
332+
version: "6.2.0"
333+
watcher:
334+
dependency: transitive
335+
description:
336+
name: watcher
337+
url: "https://pub.dartlang.org"
338+
source: hosted
339+
version: "1.0.0"
340+
web_socket_channel:
341+
dependency: transitive
342+
description:
343+
name: web_socket_channel
344+
url: "https://pub.dartlang.org"
345+
source: hosted
346+
version: "2.1.0"
347+
webkit_inspection_protocol:
348+
dependency: transitive
349+
description:
350+
name: webkit_inspection_protocol
351+
url: "https://pub.dartlang.org"
352+
source: hosted
353+
version: "1.0.0"
354+
yaml:
355+
dependency: transitive
356+
description:
357+
name: yaml
358+
url: "https://pub.dartlang.org"
359+
source: hosted
360+
version: "3.1.0"
116361
sdks:
117362
dart: ">=2.12.0 <3.0.0"

pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies:
1111
http: ^0.11.1+1
1212
path: ^1.4.1
1313
stack_trace: ^1.3.2
14+
test: ^1.16.5
1415

1516
dev_dependencies:
1617
lints: ^1.0.1

test/update_homebrew_test.dart

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'package:test/test.dart';
2+
3+
main() {
4+
test('placeholder test', () {});
5+
}

0 commit comments

Comments
 (0)