1.4 KiB
1.4 KiB
Rubocop Linter Action
GitHub Action to run Rubocop against your code.
Usage
Add the following to your GitHub action workflow:
- name: Rubocop Linter
uses: andrewmcodes/rubocop-linter-action@0.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Example Workflow
name: Ruby
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: add PostgreSQL dependencies
run: |
sudo apt-get update
sudo apt-get install -y postgresql-client libpq-dev
- name: Rubocop Linter
uses: andrewmcodes/rubocop-linter-action@0.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Screenshots
Contributing
Code of Conduct
License
Recognition
This project was originally forked from gimenete/rubocop-action. Many thanks to Alberto Gimeno for creating this project.

