Skip to content

Commit d58da7e

Browse files
authored
ci: add benchmark workflow for performance testing (#116)
1 parent 05c025a commit d58da7e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Benchmarks
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
benchmark:
8+
runs-on: ubuntu-latest
9+
env:
10+
Solution_name: JsonFlatFileDataStore.sln
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-dotnet@v4
14+
with:
15+
dotnet-version: |
16+
10.0.x
17+
- name: Restore
18+
run: dotnet restore
19+
- name: Build
20+
run: dotnet build -c Release
21+
- name: Run Benchmarks
22+
run: dotnet run --project JsonFlatFileDataStore.Benchmark/JsonFlatFileDataStore.Benchmark.csproj -c Release -- --filter '*'
23+
- name: Upload Benchmark Results
24+
uses: actions/upload-artifact@v4
25+
if: always()
26+
with:
27+
name: benchmark-results
28+
path: |
29+
**/BenchmarkDotNet.Artifacts/**
30+
BenchmarkDotNet.Artifacts/**
31+
if-no-files-found: warn

0 commit comments

Comments
 (0)