Skip to content

Merge pull request #287 from thoughtbot/github-actions/repository-mai… #38

Merge pull request #287 from thoughtbot/github-actions/repository-mai…

Merge pull request #287 from thoughtbot/github-actions/repository-mai… #38

Workflow file for this run

name: RuboCop
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
- name: Cache gems
uses: actions/cache@v3
with:
path: ../vendor/bundle
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-rubocop-
- name: Install gems
run: |
bundle config path ../vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: bundle exec rubocop --parallel