-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (42 loc) · 1.26 KB
/
pr-multi-measure-setup-job.yml
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
name: PR Multi-Measurement Setup Job Flow
on:
pull_request:
branches:
- "**"
# The results in these jobs contain multiple measures
jobs:
setup:
name: Setup Tachometer Reporting
runs-on: ubuntu-latest
steps:
- name: Initialize tachometer comment
uses: andrewiggins/tachometer-reporter-action@main
with:
initialize: true
bench_1:
name: First Bench Job
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
# Could use this to simulate benchmark running for random number of seconds
echo $((($RANDOM%(5000-1000))+1000))
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/multi-measure-results.json
report-id: multi-bench-1
pr-bench-name: local-framework
base-bench-name: base-framework
bench_2:
name: Second Bench Job
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Report Other Tachometer Result
uses: andrewiggins/tachometer-reporter-action@main
with:
path: tests/results/multi-measure-other-results.json
report-id: multi-bench-2