-
Notifications
You must be signed in to change notification settings - Fork 340
46 lines (42 loc) · 1.42 KB
/
benchmark-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Run performance benchmarks
on:
push:
branches:
- main
- pmaytak/perf-benchmark-action
paths:
- src/client/Microsoft.Identity.Client/*
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Run performance benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.101'
- name: Run benchmark
run: cd tests/Microsoft.Identity.Test.Performance && dotnet run -c release --exporters json
- name: Download previous benchmark data
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: BenchmarkDotNet Benchmark
tool: 'benchmarkdotnet'
output-file-path: tests/Microsoft.Identity.Test.Performance/BenchmarkDotNet.Artifacts/results/*-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
# auto-push: true
external-data-json-path: ./cache/benchmark-data.json
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '10%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@pmaytak'
summary-always: true