Skip to content

Commit

Permalink
Merge pull request rails#37612 from yahonda/enable_actions_cache
Browse files Browse the repository at this point in the history
Cache gems for GitHub Actions
  • Loading branch information
y-yagi authored Nov 1, 2019
2 parents cb740af + 55f9c8a commit 0b43409
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ jobs:
- name: Install required package
run: |
sudo apt-get install libmysqlclient-dev libpq-dev libsqlite3-dev libncurses5-dev
- name: Cache gems
uses: actions/cache@preview
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Build and run RuboCop
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rubocop --parallel

0 comments on commit 0b43409

Please sign in to comment.