Skip to content

Commit 5dbb7f0

Browse files
authored
Merge pull request #787 from amatsuda/ci-bundler-cache
Prefer setup-ruby's built in bundler-cache feature over actions/cache
2 parents be1149c + 87bd7b8 commit 5dbb7f0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/rubocop.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,9 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: actions/cache@v2
15-
with:
16-
path: /home/runner/bundle
17-
key: bundle-use-ruby-gems-${{ hashFiles('**/Gemfile.lock') }}
18-
restore-keys: bundle-use-ruby-gems-
1914
- uses: ruby/setup-ruby@v1
2015
with:
2116
ruby-version: ${{ matrix.ruby }}
22-
- name: Bundle install
23-
run: |
24-
gem install bundler -v 2.1.4
25-
bundle config path /home/runner/bundle
26-
bundle install
17+
bundler-cache: true
2718
- name: Run linter
2819
run: bundle exec rubocop --parallel

0 commit comments

Comments
 (0)