Skip to content

Commit 8bb4a5d

Browse files
committed
try new benchmark
1 parent 1a9e36f commit 8bb4a5d

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/benchmark.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,15 @@ jobs:
1717
dotnet-version: '6.x'
1818
- name: Run benchmark
1919
run: cd src/FluentAssertions.Analyzers.BenchmarkTests && dotnet run -c Release --exporters json --filter '*'
20-
# Download previous benchmark result from cache (if exists)
21-
- name: Download previous benchmark data
22-
uses: actions/cache@v1
23-
with:
24-
path: ./cache
25-
key: ${{ runner.os }}-benchmark
26-
# Run `github-action-benchmark` action
20+
2721
- name: Store benchmark result
28-
uses: benchmark-action/github-action-benchmark@v1
22+
uses: rhysd/github-action-benchmark@v1
2923
with:
30-
# What benchmark tool the output.txt came from
24+
name: FluentAssertions.Analyzers Benchmark
3125
tool: 'benchmarkdotnet'
32-
# Where the output from the benchmark tool is stored
33-
output-file-path: output.txt
34-
# Where the previous data file is stored
35-
external-data-json-path: ./cache/benchmark-data.json
36-
# Workflow will fail when an alert happens
26+
output-file-path: src/FluentAssertions.Analyzers.BenchmarkTests/results/Benchmarks-report-results.json
27+
github-token: ${{ secrets.GITHUB_TOKEN }}
28+
auto-push: true
29+
alert-threshold: '200%'
30+
comment-on-alert: true
3731
fail-on-alert: true

0 commit comments

Comments
 (0)