1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #38834 from olleolleolle/simpler-workflow-rubocop

Simplify GitHub Action RuboCop by using globally installed gems
This commit is contained in:
Rafael França 2020-03-27 16:56:03 -04:00 committed by GitHub
commit 86eac9b2b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,20 +12,8 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install required package
- name: Install RuboCop gems
run: |
sudo apt-get update
sudo apt-get -y install libmysqlclient-dev libpq-dev libsqlite3-dev libncurses5-dev
- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
gem install --no-document rubocop rubocop-performance rubocop-rails
- name: Run RuboCop
run: bundle exec rubocop --parallel
run: rubocop --parallel