Last active
March 2, 2021 15:23
-
-
Save georgiybykov/64917c6e4abfb7eb759b7fbbe783f422 to your computer and use it in GitHub Desktop.
GitHub actions config file to check project by RuboCop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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