@@ -4,41 +4,37 @@ on: [push, pull_request, workflow_dispatch]
4
4
5
5
jobs :
6
6
test :
7
- runs-on : macOS -latest
7
+ runs-on : ubuntu -latest
8
8
9
9
steps :
10
10
- uses : actions/checkout@v3
11
11
12
12
- uses : subosito/flutter-action@v2
13
13
with :
14
- flutter-version : " 3.22 .0"
14
+ flutter-version : " 3.24 .0"
15
15
cache : true
16
16
# Manually Update this `key`
17
- cache-key : " 3.22.0-stable "
17
+ cache-key : " 3.24.0 "
18
18
19
- - name : Restore reference summary from cache
20
- id : performance_timelines_cache_restore
21
- uses : actions/cache/restore@v4
19
+ - uses : ./.github/workflows/_run_performance_test.yaml
22
20
with :
23
- path : packages/fleather/example/build/performance_timelines
24
- key : performance_timelines
21
+ branch : master
22
+ artifact_name : master_performance_timelines
25
23
26
- - if : steps.performance_timelines_cache_restore.outputs.cache-hit == 'true'
27
- run : mv packages/fleather/example/build/performance_timelines packages/fleather/example/build/reference_performance_timelines
24
+ - uses : ./.github/workflows/_run_performance_test.yaml
25
+ with :
26
+ branch : ${{github.ref}}
27
+ artifact_name : current_ref_performance_timelines
28
28
29
- - name : Run performance tests
30
- working-directory : ./packages/fleather/example
31
- run : |
32
- flutter drive -d macos --driver=test_driver/performance_driver.dart --target=integration_test/scrolling_test.dart --profile
33
- flutter drive -d macos --driver=test_driver/performance_driver.dart --target=integration_test/editing_test.dart --profile
29
+ - uses : actions/download-artifact@v4
30
+ with :
31
+ name : master_performance_timelines
32
+ - run : mv packages/fleather/example/build/performance_timelines packages/fleather/example/build/reference_performance_timelines
33
+
34
+ - uses : actions/download-artifact@v4
35
+ with :
36
+ name : current_ref_performance_timelines
34
37
35
38
- name : Analyze results
36
39
working-directory : ./packages/fleather/example
37
- run : dart run test_utils/analyze_performance_result.dart
38
-
39
- - name : Save reference summary
40
- if : github.ref == 'refs/heads/master'
41
- uses : actions/cache/save@v4
42
- with :
43
- path : build/performance_timelines
44
- key : performance_timelines
40
+ run : dart run test_utils/analyze_performance_result.dart
0 commit comments