Skip to content

Commit dd6bd20

Browse files
committed
Use built-in bundler-cache from setup-ruby action
1 parent 310d62a commit dd6bd20

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/rubocop.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,17 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
env:
9+
BUNDLE_WITHOUT: default doc job cable storage ujs test db
810

911
steps:
1012
- uses: actions/checkout@v2
13+
1114
- name: Set up Ruby 2.7
1215
uses: ruby/setup-ruby@v1
1316
with:
1417
ruby-version: 2.7
15-
- name: Cache gems
16-
uses: actions/cache@v1
17-
with:
18-
path: vendor/bundle
19-
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
20-
restore-keys: |
21-
${{ runner.os }}-rubocop-
22-
- name: Install gems
23-
run: |
24-
bundle config path vendor/bundle
25-
bundle config set without 'default doc job cable storage ujs test db'
26-
bundle install --jobs 4 --retry 3
18+
bundler-cache: true
19+
2720
- name: Run RuboCop
2821
run: bundle exec rubocop --parallel

0 commit comments

Comments
 (0)