Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
alert-triangle

GitHub Action

Github Rubocop Action

1.5.6

Github Rubocop Action

alert-triangle

Github Rubocop Action

Runs rubocop on your PRs :)

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Github Rubocop Action

uses: luizfonseca/[email protected]

Learn more about this action in luizfonseca/github-actions-rubocop

Choose a version

Github Action: Rubocop

Lint your Ruby code in parallel to your builds.

How it works

  • Ruby 2.6.3
  • Rubocop + Rubocop Performance

Instructions

In order to use this action you will need to specify the $GITHUB_TOKEN alongside the check:

# Worflow example
name: CI
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:

    - uses: actions/checkout@v1

    - name: Rubocop checks
        uses: luizfonseca/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}