Skip to content

Commit 63ca03b

Browse files
committed
Comment on pull request with performance data
1 parent 1d52d0c commit 63ca03b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/performance.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ jobs:
2929
skipPush: true
3030

3131
- name: Build
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3234
run: |
3335
./scripts/test-statistics.sh ./. test/regression-evm >pull-request.json
3436
git fetch origin
3537
git worktree add kore-master master
3638
./scripts/test-statistics.sh ./kore-master test/regression-evm >master.json
37-
./scripts/join-statistics.sh master.json pull-request.json
39+
./scripts/join-statistics.sh master.json pull-request.json \
40+
| ./scripts/format-statistics.sh >comment.md
41+
gh pr comment ${{ github.event.pull_request.number }} -F comment.md

scripts/format-statistics.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env nix-shell
2+
#!nix-shell ../test.nix -i bash
3+
4+
mlr --ijson --omd cut -o -f name,allocated_bytes,diff_allocated_bytes,max_live_bytes,diff_max_live_bytes

0 commit comments

Comments
 (0)