From 4ba2a9b65e142d758cf2b6da90fb70657550a312 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Tue, 26 Nov 2019 14:28:06 +0900 Subject: [PATCH] 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 --- .github/workflows/rubocop.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index ba9b7aa796f8..fb6cba5c281e 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -23,8 +23,9 @@ jobs: key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gem- - - name: Build and run RuboCop + - name: Install gems run: | bundle config path vendor/bundle bundle install --jobs 4 --retry 3 - bundle exec rubocop --parallel + - name: Run RuboCop + run: bundle exec rubocop --parallel