mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Easy to show bundle exec rubocop
output at Action
When pull requests have RuboCop offenses they need to click "Build and run RuboCop" section and scroll about 200 lines to skip `bundle install` output. This change splits "Build and run RuboCop" into two parts. then "Run RuboCop" section only shows `bundle exec rubocop --parallel` output
This commit is contained in:
parent
3d0a7822a5
commit
4ba2a9b65e
1 changed files with 3 additions and 2 deletions
5
.github/workflows/rubocop.yml
vendored
5
.github/workflows/rubocop.yml
vendored
|
@ -23,8 +23,9 @@ jobs:
|
||||||
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gem-
|
${{ runner.os }}-gem-
|
||||||
- name: Build and run RuboCop
|
- name: Install gems
|
||||||
run: |
|
run: |
|
||||||
bundle config path vendor/bundle
|
bundle config path vendor/bundle
|
||||||
bundle install --jobs 4 --retry 3
|
bundle install --jobs 4 --retry 3
|
||||||
bundle exec rubocop --parallel
|
- name: Run RuboCop
|
||||||
|
run: bundle exec rubocop --parallel
|
||||||
|
|
Loading…
Reference in a new issue