Skip to content

Commit

Permalink
enable benchmarking comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Oct 29, 2024
1 parent f0d9689 commit 6e268c9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,20 @@ jobs:
uses: actions/setup-dotnet@v4

- name: Build & test
run: dotnet test --configuration Release --logger GitHubActions
run: dotnet test --configuration Release --logger GitHubActions
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Continuous Benchmark
uses: benchmark-action/github-action-benchmark@v1.20.4
with:
tool: benchmarkdotnet
output-file-path: src\artifacts\bin\SIL.Harmony.Tests\release\BenchmarkDotNet.Artifacts\results\SIL.Harmony.Tests.DataModelPerformanceBenchmarks-report-full-compressed.json
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
summary-always: true
comment-always: true
github-token: ${{ secrets.GITHUB_TOKEN }}

1 change: 1 addition & 0 deletions src/SIL.Harmony.Tests/DataModelPerformanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void AddingChangePerformance()
var summary =
BenchmarkRunner.Run<DataModelPerformanceBenchmarks>(
ManualConfig.CreateEmpty()
.AddExporter(JsonExporter.FullCompressed)

Check failure on line 32 in src/SIL.Harmony.Tests/DataModelPerformanceTests.cs

View workflow job for this annotation

GitHub Actions / build

The name 'JsonExporter' does not exist in the current context

Check failure on line 32 in src/SIL.Harmony.Tests/DataModelPerformanceTests.cs

View workflow job for this annotation

GitHub Actions / build

The name 'JsonExporter' does not exist in the current context
.AddColumnProvider(DefaultColumnProviders.Instance)
.AddLogger(new XUnitBenchmarkLogger(output))
);
Expand Down

0 comments on commit 6e268c9

Please sign in to comment.