File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Run benchmark
2+ on :
3+ push :
4+
5+ jobs :
6+ benchmark :
7+ name : Performance regression check
8+ runs-on : ubuntu-latest
9+ defaults :
10+ run :
11+ working-directory : ./src
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Setup .NET Core
16+ uses : actions/setup-dotnet@v1
17+ with :
18+ dotnet-version : |
19+ 3.1.x
20+ 5.0.x
21+ 6.0.x
22+ # Run benchmark with `go test -bench` and stores the output to a file
23+ - name : Run benchmark
24+ run : dotnet run --project .\GeoJSON.Text.Test.Benchmark\GeoJSON.Text.Test.Benchmark.csproj --framework net6 -c Release -- --job short --filter *
25+ # Download previous benchmark result from cache (if exists)
26+ - name : Download previous benchmark data
27+ uses : actions/cache@v1
28+ with :
29+ path : ./cache
30+ key : ${{ runner.os }}-benchmark
31+ # Run `github-action-benchmark` action
32+ - name : Store benchmark result
33+ uses : rhysd/github-action-benchmark@v1
34+ with :
35+ # What benchmark tool the output.txt came from
36+ tool : ' benchmarkdotnet'
37+ # Where the output from the benchmark tool is stored
38+ output-file-path : output.txt
39+ # Where the previous data file is stored
40+ external-data-json-path : ./cache/benchmark-data.json
41+ # Workflow will fail when an alert happens
42+ fail-on-alert : true
43+ # Upload the updated cache file for the next job by actions/cache
You can’t perform that action at this time.
0 commit comments