Skip to content

Lint your Ruby code in parallel to your builds

License

Notifications You must be signed in to change notification settings

skillstream/rubocop-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubocop Action

Lint your Ruby code in GitHub Actions. Can use bundled Rubocop and custom gems or even JSON results as input.

Usage

Add the following step to your GitHub actions workflow:

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

If you want to use JSON produced by Rubocop as input, give the path to the file as a parameter to the build.

- run: rubocop -f json > rubocop.json || true
- uses: lautis/[email protected]
  with:
    results: "rubocop.json"
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This can be helpful if your Gemfile needs to be installed on specific Ruby version or there are native dependencies that cannot be compiled in the action.

About

Lint your Ruby code in parallel to your builds

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 79.3%
  • Dockerfile 14.0%
  • Shell 6.7%