Skip to content

Benchmark performance #54

Benchmark performance

Benchmark performance #54

name: Benchmark performance
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on: workflow_dispatch
jobs:
analyze:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "5.x"
preferLatestVersion: true
- name: Determine version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
updateAssemblyInfo: true
useConfigFile: true
configFilePath: src/gitversion.yml
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"
dotnet-quality: "ga"
- name: Build library
run: >
dotnet build
--configuration Release
--property:ContinuousIntegrationBuild=true
- name: Benchmark indicators
working-directory: tests/performance
run: dotnet run -c Release
- name: Publish summary
working-directory: tests/performance/BenchmarkDotNet.Artifacts/results
run: |
echo "### Package version ${{ steps.gitversion.outputs.fullSemVer }}" >> $GITHUB_STEP_SUMMARY
cat Tests.Performance.IndicatorPerformance-report-github.md >> $GITHUB_STEP_SUMMARY