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:
parent
d7941230a4
commit
e7c5da2fff
2 changed files with 5 additions and 10 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -26,6 +26,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DB: ${{ matrix.db }}
|
DB: ${{ matrix.db }}
|
||||||
RAILS_ENV: test
|
RAILS_ENV: test
|
||||||
|
BUNDLE_WITH: ${{ matrix.db }}
|
||||||
|
BUNDLE_WITHOUT: development
|
||||||
|
BUNDLE_FROZEN: true
|
||||||
|
BUNDLE_DISABLE_SHARED_GEMS: true
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
|
|
@ -48,15 +52,9 @@ jobs:
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby }}
|
ruby-version: ${{ matrix.ruby }}
|
||||||
|
bundler-cache: true
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: script/ci/prepare.sh
|
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
|
- name: Run tests
|
||||||
run: bin/rake --trace ci:${{ matrix.kind }}
|
run: bin/rake --trace ci:${{ matrix.kind }}
|
||||||
- name: Run Jasmine
|
- name: Run Jasmine
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,3 @@ cp config/database.yml.example config/database.yml
|
||||||
if [ "${DB}" = "mysql" ]; then
|
if [ "${DB}" = "mysql" ]; then
|
||||||
sed -i 's/*common/*mysql/' config/database.yml
|
sed -i 's/*common/*mysql/' config/database.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gem install bundler
|
|
||||||
script/configure_bundler
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue