-
Notifications
You must be signed in to change notification settings - Fork 91
40 lines (38 loc) · 1.16 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
name: Run benchmark
on:
push:
branches: [ main, '[0-9]*.[0-9]*.x' ]
pull_request:
branches: [ main, '[0-9]*.[0-9]*.x' ]
workflow_dispatch:
jobs:
jmh:
name: Run benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Execute benchmark
uses: gradle/[email protected]
with:
arguments: jmh
- name: Merge benchmark results
id: merge
run: |
echo "" > merged_results.csv
find ./fixture-monkey-benchmarks -name 'results.csv' | while read line; do
cat "$line" >> merged_results.csv
echo "" >> merged_results.csv
done
cat merged_results.csv
- name: Read merged benchmark result
id: csv
uses: juliangruber/read-file-action@v1
with:
path: merged_results.csv
- name: Create Markdown table
uses: petems/csv-to-md-table-action@master
id: csv-table-output
with:
csvinput: ${{ steps.csv.outputs.content }}
- name: Print benchmark summary
run: echo "${{steps.csv-table-output.outputs.markdown-table}}" >> $GITHUB_STEP_SUMMARY