Skip to content

Commit

Permalink
Improved Rubocop workflow job
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Augusto committed Mar 21, 2024
1 parent 8e769be commit 35d1759
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
pull_request:

jobs:
build:
rubocop:
runs-on: ubuntu-latest
name: Rubocop
strategy:
Expand All @@ -23,5 +23,16 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Cache gems
uses: actions/cache@v1
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 rake rubocop
run: bundle exec rubocop --parallel

0 comments on commit 35d1759

Please sign in to comment.