Git Product home page Git Product logo

benchy-action's Introduction

benchy-action

A continuous benchmarking tool for GitHub Actions.

Installation

You can install the GitHub app here to get comments on pull requests and commits automatically.

This is not mandatory, and you can use this action without the app: instead of getting comments, the action will print an ASCII table in the logs.

Example usage

name: My CI test
jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      # more on this later
      id-token: write
    steps:
      - uses: actions/checkout@v3
      - uses: Schniz/benchy-action@v2
        with:
          key: "a value to track"
          value: 666

The id-token Permissions

Benchy is built to be hassle-free and to be used as fast as possible: without any authentication or registration. So, in order to authenticate the requests from GitHub Actions we use the OpenID Connect feature of GitHub Actions to get an ID token that is signed by GitHub and contains the information about the repository and the workflow run.

Enabling id-token: write on the GitHub Actions job will enable the action to get an ID token and use it to authenticate the requests to the Benchy API.

Action Inputs

Name Description
key The key to track
value The value to track
json Data to track in a JSON format
input_file Path to a JSON file to track data from
track_file_size A glob pattern to track the size of files in the repository. For example, dist/**/*.min.js will track the size of all the minified JavaScript files in the dist directory.

See the JSON Schema for the format of the JSON value/file.

benchy-action's People

Contributors

schniz avatar github-actions[bot] avatar dependabot[bot] avatar kikobeats avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.