Skip to content

Commit 464f5bc

Browse files
authored
Enable perf results PR comment on CI runs (#15748)
1 parent 86e6a03 commit 464f5bc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/perf-tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
permissions:
3333
contents: read
3434
actions: read
35+
pull-requests: write
3536

3637
steps:
3738
# ── Setup ──────────────────────────────────────────────
@@ -83,6 +84,14 @@ jobs:
8384
packages/e2e-test-app-fabric/test/__perf__/**/__perf_snapshots__/
8485
retention-days: 30
8586

87+
# ── PR Comment ────────────────────────────────────────
88+
- name: Post perf results to PR
89+
if: github.event_name == 'pull_request' && always()
90+
working-directory: packages/e2e-test-app-fabric
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
run: yarn perf:ci:report
94+
8695
# ── Status Gate ────────────────────────────────────────
8796
- name: Check for regressions
8897
if: steps.compare.outcome == 'failure'

0 commit comments

Comments
 (0)