Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Use bundler-cache, and rely on on ruby/setup-ruby to have patch versions of Ruby #1467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
fail-fast: false
matrix:
ruby:
- 3.0.2
- 2.7.4
- 2.6.8
- '3.0'
- 2.7
- 2.6
appraisal:
- rails_6_1
- rails_6_0
Expand All @@ -38,7 +38,7 @@ jobs:
- sqlite3
- postgresql
exclude:
- { ruby: 3.0.2, appraisal: rails_5_2 }
- { ruby: '3.0', appraisal: rails_5_2 }
env:
DATABASE_ADAPTER: ${{ matrix.adapter }}
BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile
Expand All @@ -49,12 +49,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: v1-rubygems-local-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles(format('gemfiles/{0}.gemfile.lock', matrix.appraisal)) }}
- name: Install dependencies
run: bundle install --jobs=3 --retry=3
bundler-cache: true # 'bundle install' and cache
- name: Run Unit Tests
run: bundle exec rake spec:unit --trace
- name: Run Acceptance Tests
Expand Down