Use bundler-cache: true instead of actions/cache@v2

Using actions/cache@v2 causes problems with ruby, see
https://github.com/ruby/setup-ruby#caching-bundle-install-manually

Closes #8221

closes #8226
This commit is contained in:
Benjamin Neff
2021-03-22 01:25:59 +01:00
committed by Jonne Haß
parent d7941230a4
commit e7c5da2fff
2 changed files with 5 additions and 10 deletions

View File

@@ -26,6 +26,10 @@ jobs:
env:
DB: ${{ matrix.db }}
RAILS_ENV: test
BUNDLE_WITH: ${{ matrix.db }}
BUNDLE_WITHOUT: development
BUNDLE_FROZEN: true
BUNDLE_DISABLE_SHARED_GEMS: true
services:
postgres:
image: postgres
@@ -48,15 +52,9 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Prepare
run: script/ci/prepare.sh
- name: Cache dependencies
uses: actions/cache@v2
with:
path: vendor/bundle
key: bundler-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.db }}-${{ hashFiles('Gemfile.lock') }}
- name: Install dependencies
run: bundle
- name: Run tests
run: bin/rake --trace ci:${{ matrix.kind }}
- name: Run Jasmine