-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (43 loc) · 1.36 KB
/
celerity_perf_check.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
name: Celerity Performance Check
on: pull_request
jobs:
check-perf-impact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install plot generation dependencies
run: |
sudo apt-get install libmagickwand-dev
gem install gruff
- name: Find previous perf comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.number }}
body-includes: "Check-perf-impact results"
direction: last
- name: Analyze performance impact
id: analysis
run: ruby ./ci/check-perf-impact.rb
env:
PREV_COMMENT_BODY: ${{ steps.fc.outputs.comment-body }}
- if: steps.analysis.outputs.done != 'true'
name: Upload boxplots to imgur
id: imgur_step
uses: devicons/[email protected]
with:
path: box_*.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- if: steps.analysis.outputs.done != 'true'
name: Add images to message
env:
PLOT_IMG_URLS: ${{ steps.imgur_step.outputs.imgur_urls }}
run: ruby ./ci/check-perf-impact.rb
- if: steps.analysis.outputs.done != 'true'
name: Report performance impact
uses: thollander/actions-comment-pull-request@v2
with:
filePath: check_perf_message.txt