Skip to content

An Action to take info from kotlinx-benchmark outputs and display them in a table as a pull request comment

Notifications You must be signed in to change notification settings

boswelja/kotlinx-benchmark-table-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlinx-benchmark-table-action

An Action to take info from kotlinx-benchmark outputs and display them in a table as a pull request comment

Check action.yml for a description of inputs and outputs.

Configuration sample

  1. As a GitHub Summary check:
- name: Create Benchmark Table
  id: benchmark-table
  uses: boswelja/[email protected]
  with:
    benchmark-results: ./benchmarks/build/reports/benchmarks/main/**/jvm.json
- name: Post Results
  run: |
    echo '## Benchmarks results ⏱️' >> $GITHUB_STEP_SUMMARY
    echo '${{steps.benchmark-table.outputs.benchmark-table}}️' >> $GITHUB_STEP_SUMMARY
  1. As a GitHub PR comment (Assuming the action is running on a GitHub runners):
- name: Create Benchmark Table
  id: benchmark-table
  uses: boswelja/[email protected]
  with:
    benchmark-results: ./benchmarks/build/reports/benchmarks/main/**/jvm.json
- name: Post Results
  env:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    GH_HEAD_REF: ${{github.head_ref}}
  run: |
    gh pr comment "$GH_HEAD_REF" --body "
    ## Benchmarks from last commit:
    ${{steps.benchmark-table.outputs.benchmark-table}}
    "

About

An Action to take info from kotlinx-benchmark outputs and display them in a table as a pull request comment

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •