Skip to content

Commit 5e619c1

Browse files
committed
Add PR Comment for bench
1 parent cc29d0b commit 5e619c1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ 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
@@ -48,3 +49,22 @@ jobs:
4849
github-token: ${{ secrets.GITHUB_TOKEN }}
4950
comment-on-alert: true
5051
summary-always: true
52+
53+
##
54+
# NOTE: in ration is <1, the performance has improved.
55+
- uses: mshick/add-pr-comment@v2
56+
with:
57+
message: |
58+
## Benchmarks[^note]
59+
60+
Results for the latest run for this branch:
61+
62+
https://github.com/proposal-signals/signal-polyfill/actions/runs/${{ github.run_id }}
63+
64+
---------------
65+
66+
Compare with `main` over time:
67+
68+
https://proposal-signals.github.io/signal-polyfill/dev/bench/
69+
70+
[^note]: When the ratio is < 1, performance has improved in the PR.

0 commit comments

Comments
 (0)