-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 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
name: Benchmark
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Run JMH
run: |
./gradlew benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: JMH Benchmark
tool: 'jmh'
output-file-path: build/results/jmh/results.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: false
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@sya-ri'
summary-always: true
- name: Install SSH Client 🔑
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.BENCHMARK_DEPLOY_KEY }}
- name: Push benchmark result
run: git push 'git@github.com:sya-ri-bot/ktConfig-benchmark.git' gh-pages:gh-pages