Skip to content

chore: synced file(s) with phnx47/sync-files #34

chore: synced file(s) with phnx47/sync-files

chore: synced file(s) with phnx47/sync-files #34

Workflow file for this run

name: Benchmarks
on:
pull_request:
branches:
- "main"
workflow_dispatch:
jobs:
benchmarks:
name: Benchmarks
if: startsWith(github.head_ref, 'renovate/') == false
runs-on: ubuntu-22.04
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Run all benchmarks
working-directory: tests/benchmarks
run: dotnet run -c Release -- -f *
- name: Add summary
working-directory: tests/benchmarks/BenchmarkDotNet.Artifacts/results
run: cat FingerprintBuilder.BenchmarkTests.ModelToHex-report-github.md >> $GITHUB_STEP_SUMMARY
- name: Add PR comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: tests/benchmarks/BenchmarkDotNet.Artifacts/results/FingerprintBuilder.BenchmarkTests.ModelToHex-report-github.md