-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1 KB
/
benchmark.yaml
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
name: benchmark
on:
pull_request:
path-ignore:
- 'docs/**'
- 'README.md'
permissions:
contents: write
pull-requests: write
env:
JDK_VERSION: 21
GRADLE_OPTS: -Dorg.gradle.daemon=false
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '${{ env.JDK_VERSION }}'
cache: 'gradle'
- name: Build and Run JMH benchmarks
run: ./gradlew :benchmarks:jmh
- name: JMH Benchmark Action
uses: kitlangton/jmh-benchmark-action@ea96a79ecacbec56b6bb17aafb90275bfbf26ebb
with:
jmh-output-path: benchmarks/build/reports/jmh/results.json
github-token: ${{ secrets.GITHUB_TOKEN }}