-
-
Notifications
You must be signed in to change notification settings - Fork 38
44 lines (37 loc) · 1.46 KB
/
performance_test.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
name: Performance Test
on:
push:
branches:
- 'master'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.0"
cache: true
# Manually Update this `key`
cache-key: "20230512"
- name: Restore reference summary from cache
id: performance_timelines_cache_restore
uses: actions/cache/restore@v4
with:
path: packages/fleather/example/build/performance_timelines
key: performance_timelines
- if: steps.performance_timelines_cache_restore.outputs.cache-hit == 'true'
run: mv packages/fleather/example/build/performance_timelines packages/fleather/example/build/reference_performance_timelines
- name: Run performance tests
working-directory: ./packages/fleather/example
run: |
flutter drive -d linux-x64 --driver=test_driver/performance_driver.dart --target=integration_test/scrolling_test.dart --profile
flutter drive -d linux-x64 --driver=test_driver/performance_driver.dart --target=integration_test/editing_test.dart --profile
dart run test_utils/analyze_performance_result.dart
- name: Save reference summary
if: github.ref == 'refs/heads/master'
uses: actions/cache/save@v4
with:
path: build/performance_timelines
key: performance_timelines