Skip to content

Commit

Permalink
try new benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Meir017 committed Nov 6, 2023
1 parent 1a9e36f commit 8bb4a5d
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,15 @@ jobs:
dotnet-version: '6.x'
- name: Run benchmark
run: cd src/FluentAssertions.Analyzers.BenchmarkTests && dotnet run -c Release --exporters json --filter '*'
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v1
with:
path: ./cache
key: ${{ runner.os }}-benchmark
# Run `github-action-benchmark` action

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
uses: rhysd/github-action-benchmark@v1
with:
# What benchmark tool the output.txt came from
name: FluentAssertions.Analyzers Benchmark
tool: 'benchmarkdotnet'
# Where the output from the benchmark tool is stored
output-file-path: output.txt
# Where the previous data file is stored
external-data-json-path: ./cache/benchmark-data.json
# Workflow will fail when an alert happens
output-file-path: src/FluentAssertions.Analyzers.BenchmarkTests/results/Benchmarks-report-results.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true

0 comments on commit 8bb4a5d

Please sign in to comment.