-
Notifications
You must be signed in to change notification settings - Fork 23
74 lines (55 loc) · 1.94 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
# TODO(polina-c): configure auto-update for diagrams
# https://github.com/dart-lang/leak_tracker/issues/104
on:
schedule:
# “At 00:00 (UTC) on Sunday.”
- cron: '0 0 * * 0'
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: clone the repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- name: install Flutter sdk
uses: subosito/flutter-action@3d804929922b667a63a229bc59037807f969e885
with:
channel: 'master'
- name: version
run: flutter --version
- name: analyze
run: sh ./tool/analyze.sh
# unit tests:
- name: test leak_tracker
run: dart test
working-directory: pkgs/leak_tracker
- name: test leak_tracker_testing
run: dart test
working-directory: pkgs/leak_tracker_testing
- name: test leak_tracker_flutter_testing
run: flutter test --enable-vmservice
working-directory: pkgs/leak_tracker_flutter_testing
- name: test memory_usage
run: dart test
working-directory: pkgs/memory_usage
# integration tests:
- name: integration test examples/autosnapshotting
run: flutter test integration_test/app_test.dart -d flutter-tester
working-directory: examples/autosnapshotting
# cycles:
- name: cycles in leak_tracker
run: dart run layerlens --fail-on-cycles
working-directory: pkgs/leak_tracker
- name: cycles in leak_tracker_testing
run: dart run layerlens --fail-on-cycles
working-directory: pkgs/leak_tracker_testing
- name: cycles in leak_tracker_flutter_testing
run: dart run layerlens --fail-on-cycles
working-directory: pkgs/leak_tracker_flutter_testing
- name: cycles in memory_usage
run: dart run layerlens --fail-on-cycles
working-directory: pkgs/memory_usage