Skip to content

Commit

Permalink
Merge pull request #787 from amatsuda/ci-bundler-cache
Browse files Browse the repository at this point in the history
Prefer setup-ruby's built in bundler-cache feature over actions/cache
  • Loading branch information
amatsuda committed Jun 1, 2023
2 parents be1149c + 87bd7b8 commit 5dbb7f0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: /home/runner/bundle
key: bundle-use-ruby-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: bundle-use-ruby-gems-
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundle install
run: |
gem install bundler -v 2.1.4
bundle config path /home/runner/bundle
bundle install
bundler-cache: true
- name: Run linter
run: bundle exec rubocop --parallel

0 comments on commit 5dbb7f0

Please sign in to comment.