Skip to content

Merge pull request #1217 from collectiveidea/release-4.1.12 #255

Merge pull request #1217 from collectiveidea/release-4.1.12

Merge pull request #1217 from collectiveidea/release-4.1.12 #255

Workflow file for this run

name: RuboCop
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Generate lockfile for cache key
run: bundle lock
- name: Cache gems
uses: actions/cache@v4
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 config set without 'default test'
bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: bundle exec rubocop