Simplify gem caching for build job

To match new DB update job
This commit is contained in:
Oliver Peate 2021-03-25 12:18:28 +00:00 committed by Sam
parent d2d90f1c96
commit 5037108b4c
1 changed files with 1 additions and 11 deletions

View File

@ -30,17 +30,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundler cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby }}-gems-
- name: Setup gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4
bundler-cache: true
- name: Rubocop
run: bundle exec rubocop
if: "!contains(matrix.ruby, 'jruby')"