Skip to content

Instantly share code, notes, and snippets.

@georgiybykov
Last active March 2, 2021 15:23
Show Gist options
  • Save georgiybykov/64917c6e4abfb7eb759b7fbbe783f422 to your computer and use it in GitHub Desktop.
Save georgiybykov/64917c6e4abfb7eb759b7fbbe783f422 to your computer and use it in GitHub Desktop.
GitHub actions config file to check project by RuboCop
# .github/workflows/rubocop.yml
name: RuboCop
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true # Executes `bundle install` and caches installed gems automatically
# - name: Bundle install
# run: bundle install --jobs 4 --retry 3
- name: Run RuboCop and Check the code
run: bundle exec rubocop --parallel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment