Sam Therapy
819bcbde08
Some checks failed
Public Preview Builds / publish-preview (push) Failing after 49s
Signed-off-by: Sam Therapy <sam@samtherapy.net>
33 lines
No EOL
929 B
YAML
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' |