-
-
Notifications
You must be signed in to change notification settings - Fork 38
48 lines (39 loc) · 1.34 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
45
46
47
48
name: Performance Test
on: [pull_request, workflow_dispatch]
jobs:
test_master:
uses: ./.github/workflows/_run_performance_test.yaml
with:
branch: ${{github.ref}}
artifact_name: master_performance_timelines
test_current:
uses: ./.github/workflows/_run_performance_test.yaml
with:
branch: ${{github.ref}}
artifact_name: current_ref_performance_timelines
analyze:
needs: [test_master, test_current]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.0"
cache: true
# Manually Update this `key`
cache-key: "3.24.0"
- uses: actions/download-artifact@v4
with:
name: master_performance_timelines
- run: ls .
- run: ls packages/
- run: ls packages/fleather/
- run: ls packages/fleather/example/
- run: ls packages/fleather/example/build/
- run: mv packages/fleather/example/build/performance_timelines packages/fleather/example/build/reference_performance_timelines
- uses: actions/download-artifact@v4
with:
name: current_ref_performance_timelines
- name: Analyze results
working-directory: ./packages/fleather/example
run: dart run test_utils/analyze_performance_result.dart