-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (80 loc) · 3.2 KB
/
run-perf-tests.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
71
72
73
74
75
76
77
78
79
80
81
82
---
name: run-perf-tests
on:
workflow_dispatch:
jobs:
tests:
name: Run backend performance tests
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: omnikeeper_tests
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 10
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET 7.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Run performance tests
env:
ConnectionStrings__DatabaseConnection: Server=localhost;Port=5432;User Id=postgres;Password=postgres;Database=omnikeeper_tests;Pooling=false
run: |
cd backend
dotnet run --project ./PerfTests -c Release -- --job short --runtimes net7.0 --filter '*' --exporters json --strategy Monitoring
- name: upload GetMergedAttributes benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
name: Benchmark
tool: 'benchmarkdotnet'
output-file-path: backend/BenchmarkDotNet.Artifacts/results/PerfTests.GetMergedAttributesTest-report-full-compressed.json
github-token: ${{ secrets.BENCHMARK_RESULTS_DEPLOY_TOKEN }}
gh-pages-branch: main
auto-push: true
benchmark-data-dir-path: .
alert-threshold: '150%'
comment-on-alert: true
fail-on-alert: true
gh-repository: 'github.com/max-bytes/omnikeeper-benchmarks'
- name: Remove File # HACK: otherwise, next call fails
uses: JesseTG/rm@v1.0.3
with:
path: ./benchmark-data-repository
- name: upload BulkReplaceAttributes benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
name: Benchmark
tool: 'benchmarkdotnet'
output-file-path: backend/BenchmarkDotNet.Artifacts/results/PerfTests.BulkReplaceAttributesTest-report-full-compressed.json
github-token: ${{ secrets.BENCHMARK_RESULTS_DEPLOY_TOKEN }}
gh-pages-branch: main
auto-push: true
benchmark-data-dir-path: .
alert-threshold: '150%'
comment-on-alert: true
fail-on-alert: true
gh-repository: 'github.com/max-bytes/omnikeeper-benchmarks'
- name: Remove File # HACK: otherwise, next call fails
uses: JesseTG/rm@v1.0.3
with:
path: ./benchmark-data-repository
- name: upload GetTraitEntitiesByCIIDTest benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
name: Benchmark
tool: 'benchmarkdotnet'
output-file-path: backend/BenchmarkDotNet.Artifacts/results/PerfTests.GetTraitEntitiesByCIIDTest-report-full-compressed.json
github-token: ${{ secrets.BENCHMARK_RESULTS_DEPLOY_TOKEN }}
gh-pages-branch: main
auto-push: true
benchmark-data-dir-path: .
alert-threshold: '150%'
comment-on-alert: true
fail-on-alert: true
gh-repository: 'github.com/max-bytes/omnikeeper-benchmarks'