-
Notifications
You must be signed in to change notification settings - Fork 22
50 lines (38 loc) · 1.17 KB
/
benchmark.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
name: Benchmark
on:
pull_request:
push:
branches:
- main
jobs:
benchmark:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .github/files/.nvmrc
- name: Corepack
run: corepack enable
- name: Install Dependencies
run: yarn
- name: Build
run: yarn build
- name: Start KurrentDB
run: docker compose -f packages/benchmark/docker-compose.yml up -d
- name: Load Events
run: yarn nx run benchmark:loadEvents
- name: Run Benchmarks
run: yarn nx run benchmark:benchmark | tee benchmark-bridge-client-output-${{ matrix.os }}.txt
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: benchmark-bridge-client-output-${{ matrix.os }}.txt
- name: Shutdown KurrentDB
run: docker compose -f packages/benchmark/docker-compose.yml down