Skip to content

A GitHub Action to run benchmarks on Dart/Flutter projects and libraries

License

Notifications You must be signed in to change notification settings

luanpotter/dart-benchmark-action

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

Repository files navigation

Dart Benchmark Action

CI Coverage

A GitHub Action to run benchmarks on Dart/Flutter projects and libraries.

In order to use it, add it as an Action to your GitHub repository:

name: Benchmark

on: [pull_request]

jobs:
  benchmark:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - uses: dart-lang/setup-dart@v1
      - run: dart pub get

      - uses: luanpotter/dart-benchmark-action@v0.1.4
        with:
          paths: '<path-to-your-dart-project>,<more>'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This is what the comment can look like:

image

But it will use tables and toggles depending on the amount of projects/packages you have and the number of performance tests associated with them.

Local Setup

To build, lint, and run tests locally, run:

  npm install
  npm run all

About

A GitHub Action to run benchmarks on Dart/Flutter projects and libraries

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published