Skip to content

Commit 4e94677

Browse files
Enable regression comments
Enable comments when a performance regression is detected.
1 parent 7d05057 commit 4e94677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
uses: martincostello/benchmarkdotnet-results-publisher@v1
5151
with:
5252
branch: ${{ github.ref_name }}
53+
comment-on-threshold: true
5354
name: 'ASP.NET Core OpenAPI'
5455
output-file-path: '${{ steps.get-repo-name.outputs.repo-name }}/data.json'
5556
repo: '${{ github.repository_owner }}/benchmarks'
@@ -60,7 +61,6 @@ jobs:
6061
env:
6162
REPO_NAME: ${{ steps.get-repo-name.outputs.repo-name }}
6263
run: |
63-
$summary = Get-Content -Path (Join-Path ${env:GITHUB_WORKSPACE} "BenchmarkDotNet.Artifacts" "results" "TodoApp.OpenApiBenchmarks-report-github.md") -Raw
6464
$summary += "`n`n"
6565
$summary += "View benchmark results history [here](https://benchmarks.martincostello.com/${env:REPO_NAME}?branch=${env:GITHUB_REF_NAME})."
6666
$summary >> ${env:GITHUB_STEP_SUMMARY}

0 commit comments

Comments
 (0)