Skip to content

Commit

Permalink
Simplify GitHub Action RuboCop
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Mar 27, 2020
1 parent f41730c commit c1e7268
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c1e7268

Please sign in to comment.