-
Notifications
You must be signed in to change notification settings - Fork 247
70 lines (54 loc) · 2.06 KB
/
test-performance.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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: "9.x"
dotnet-quality: "ga"
- name: Build library
run: >
dotnet build
--configuration Release
--property:ContinuousIntegrationBuild=true
- name: Test performance
working-directory: tests/performance
run: dotnet run -c Release
- name: Save test results
uses: actions/upload-artifact@v4
with:
name: test-summaries
path: tests/performance/BenchmarkDotNet.Artifacts/results
- name: Publish summary
working-directory: tests/performance/BenchmarkDotNet.Artifacts/results
run: |
echo "### Package version ${{ steps.gitversion.outputs.fullSemVer }}" >> $GITHUB_STEP_SUMMARY
echo "## Series indicators" >> $GITHUB_STEP_SUMMARY
cat Performance.SeriesIndicators-report-github.md >> $GITHUB_STEP_SUMMARY
echo "## Stream indicators (with Quote caching)" >> $GITHUB_STEP_SUMMARY
cat Performance.StreamIndicators-report-github.md >> $GITHUB_STEP_SUMMARY
echo "## Incrementing buffer-style indicators" >> $GITHUB_STEP_SUMMARY
cat Performance.BufferLists-report-github.md >> $GITHUB_STEP_SUMMARY
echo "## Utilities" >> $GITHUB_STEP_SUMMARY
cat Performance.Utility-report-github.md >> $GITHUB_STEP_SUMMARY