Xdg.Directories/.github/workflows/benckmark.yaml
Sam Therapy 819bcbde08
Some checks failed
Public Preview Builds / publish-preview (push) Failing after 49s
oops all idiots
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-03-26 17:30:37 +01:00

33 lines
No EOL
929 B
YAML

name: Benchmarks
on:
push:
branches:
- master
permissions:
contents: write
deployments: write
jobs:
benchmark:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Run Benchmarks
run: dotnet run -c Release --project src/Xdg.Benchmarks --exporters json --framework net8.0
- name: Store Benchmark Result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Benchmark.Net Benchmark
tool: 'benchmarkdotnet'
output-file-path: 'BenchmarkDotNet.Artifacts/results/Program.Benchmarks-report-full.json'
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@SamTherapy'