Merge branch 'next-minor' into develop

This commit is contained in:
Jonne Haß 2021-04-10 11:07:45 +02:00
commit ddaab0d8e8
2 changed files with 5 additions and 10 deletions

View file

@ -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

View file

@ -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