chore: Add GitHub Action to run benchmarks on pull requests#31
chore: Add GitHub Action to run benchmarks on pull requests#31
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>
📦 napi-rs Build Size Comparison
Total: 849.82 KB → 849.82 KB (0 KB, 0%) Compared using x86_64-unknown-linux-gnu target |
⚡ Benchmark ResultsClick to expand benchmark outputBenchmark ran on x86_64-unknown-linux-gnu target |
There was a problem hiding this comment.
Pull request overview
This PR adds automated benchmark execution on pull requests, following the established patterns from existing workflows. The implementation posts benchmark results as PR comments and includes them in the job summary.
- Adds
.github/workflows/benchmark.ymlthat triggers on PRs (excluding documentation changes) - Builds the project for the
x86_64-unknown-linux-gnutarget and runsyarn bench - Posts/updates a collapsible PR comment with benchmark results using the peter-evans actions
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds automated benchmark execution on PRs with results posted as a comment.
Changes
.github/workflows/benchmark.yml:x86_64-unknown-linux-gnutargetyarn benchand captures outputpeter-evans/create-or-update-commentUses same patterns as existing workflows: pinned action SHAs, cargo caching, concurrency groups.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.