-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 988 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Dart CI
on:
schedule:
# “At 00:00 (UTC) on Sunday.”
- cron: '0 0 * * 0'
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: dev
- name: Install dependencies
run: dart pub get
- name: Show generated file sizes
run: |
echo "File sizes in KB"
echo ""
ls -skS -1 -R test/spec/**/*.dart
ls -skS -1 -R samples/*.dart
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed bin/ lib/ tool/
- name: Analyze project source
# run: dart analyze --fatal-infos
run: dart analyze
# TODO: verify that the generators work (regen, spec)
- name: Run tests
run: dart tool/tests.dart