Fix broken link and test cover. (#242) #1292
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: install Flutter sdk | |
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
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 |