Fix nuget groups #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: benchmark | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
deployments: write | |
contents: write | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@main | |
- name: π¨ Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: ./global.json | |
- name: π¨ List benchmarks | |
id: list-benchmarks | |
run: | | |
dotnet run \ | |
--project ./Benchmarks.App/Benchmarks.App.csproj \ | |
--configuration Release \ | |
list | |
- name: β Run benchmarks | |
id: run-benchmarks | |
run: | | |
dotnet run \ | |
--project ./Benchmarks.App/Benchmarks.App.csproj \ | |
--configuration Release \ | |
workflow | |
- name: π Store benchmark results | |
id: store-benchmarks | |
if: ${{ github.event_name == 'push' }} | |
uses: benchmark-action/[email protected] | |
with: | |
name: Benchmarks | |
tool: benchmarkdotnet | |
output-file-path: BenchmarkDotNet.Artifacts/results/Benchmarks.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true |