Skip to content

amoniacou/pronto-ruby-action

This branch is 4 commits ahead of, 59 commits behind AdWerx/pronto-ruby:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

af6abce · Feb 27, 2020

History

75 Commits
Feb 27, 2020
Feb 27, 2020
Feb 27, 2020
Oct 9, 2019
Feb 27, 2020
Nov 27, 2019
Oct 3, 2019
Dec 31, 2019
Feb 27, 2020
Feb 27, 2020
Feb 27, 2020
Feb 27, 2020
Oct 3, 2019
Feb 27, 2020
Feb 27, 2020
Feb 27, 2020
Nov 27, 2019
Jan 1, 2020

Repository files navigation

Your all-in-one ruby Pronto runner.

This GitHub Action runs Pronto runners on your Ruby project diffs and reports back with a GitHub Check Run.

check runs

annotations

Runners

The docker image of this Action includes the following Pronto Runners:

  • brakeman
  • bundler_audit
  • fasterer
  • flay
  • poper
  • rails_best_practices
  • rails_schema
  • reek
  • rubocop
  • scss

Inputs

name description default
runners Space-separated list of pronto runners to run. Must be the preinstalled runners from the list above. rubocop
target The git target pronto will diff against (-c) origin/master

Secrets

A GitHub token is available by default when using actions, but you must include it in the env map for this Action to use when creating a check run.

Be sure to include the ENV variable in your job step:

- uses: adwerx/pronto-ruby
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

That's it!

Configuration

Pronto can be configured via the .pronto.yml configuration file in your repo.

Example

With the defaults (only rubocop):

name: Pronto

on:
  - push
  - pull_request

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: amoniacou/pronto-ruby-action@v2.6.5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

With specific runners:

name: Pronto

on:
  - push
  - pull_request

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: amoniacou/pronto-ruby-action@v2.6.5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          runners: >-
            rubocop rails_schema

Development / Contributions

See CONTRIBUTING.md

About

A GitHub Action for running Pronto code review automation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 94.4%
  • Dockerfile 2.8%
  • Makefile 2.6%
  • Shell 0.2%