-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (43 loc) · 1.26 KB
/
bench.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
name: bench
on:
workflow_dispatch:
schedule:
- cron: "42 9 * * *"
jobs:
benchee:
runs-on: ubuntu-latest
env:
MIX_ENV: bench
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123
env:
options: >-
--health-cmd nc -zw3 localhost 8124
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- id: beam
uses: erlef/setup-beam@v1
with:
elixir-version: 1
otp-version: 27
- uses: actions/cache@v4
with:
path: |
deps
_build
key: bench-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
bench-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}-
bench-${{ steps.beam.outputs.elixir-version }}-refs/heads/master-
- run: mix deps.get --only $MIX_ENV
- run: mix compile --warnings-as-errors
# - run: mix run bench/cast.exs
- run: mix run bench/encode.exs
- run: mix run bench/insert.exs
- run: mix run bench/stream.exs