Skip to content

Commit 6240b44

Browse files
Merge pull request #49 from proposal-signals/add-pr-comment-for-bench
Add PR Comment for bench
2 parents cc29d0b + c829b58 commit 6240b44

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ jobs:
2929
- run: pnpm lint
3030
- run: pnpm build
3131
- run: pnpm vitest ${{ matrix.testenv.args }}
32+
3233
benchmarks:
3334
runs-on: ubuntu-latest
3435
timeout-minutes: 10
3536
permissions:
3637
contents: write
38+
pull-requests: write
3739
steps:
3840
- uses: actions/checkout@v4
3941
- uses: wyvox/action-setup-pnpm@v3
@@ -48,3 +50,22 @@ jobs:
4850
github-token: ${{ secrets.GITHUB_TOKEN }}
4951
comment-on-alert: true
5052
summary-always: true
53+
54+
##
55+
# NOTE: in ration is <1, the performance has improved.
56+
- uses: mshick/add-pr-comment@v2
57+
with:
58+
message: |
59+
## Benchmarks[^note]
60+
61+
Results for the latest run for this branch:
62+
63+
https://github.com/proposal-signals/signal-polyfill/actions/runs/${{ github.run_id }}
64+
65+
---------------
66+
67+
Compare with `main` over time:
68+
69+
https://proposal-signals.github.io/signal-polyfill/dev/bench/
70+
71+
[^note]: When the ratio is < 1, performance has improved in the PR.

0 commit comments

Comments
 (0)