Skip to content

Commit bc2cb3c

Browse files
authored
Improve CI matrix and bundler management (#89)
* Use built-in `bundler-cache` from `ruby/setup-ruby@v1` action to run `bundle install` * Add Ruby 3.1 to matrix
1 parent 9e864c8 commit bc2cb3c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11+
env:
12+
BUNDLE_GEMFILE: ${{ github.workspace }}/.gemfiles/${{ matrix.gemfile }}.gemfile
1113
strategy:
1214
matrix:
13-
ruby: ['2.6', '2.7', '3.0' ]
15+
ruby: ['2.6', '2.7', '3.0', '3.1' ]
1416
gemfile:
15-
- .gemfiles/rails-5.2.x.gemfile
16-
- .gemfiles/rails-6.0.x.gemfile
17-
- .gemfiles/rails-6.1.x.gemfile
17+
- rails-5.2.x
18+
- rails-6.0.x
19+
- rails-6.1.x
1820

1921
steps:
2022
- uses: actions/checkout@v2
2123
- name: Set up Ruby
2224
uses: ruby/setup-ruby@v1
2325
with:
2426
ruby-version: ${{ matrix.ruby }}
25-
- name: Install dependencies
26-
run: bundle install --gemfile=${{ matrix.gemfile }} --jobs 4
27+
bundler-cache: true
2728
- name: Run tests
2829
run: bundle exec rake

0 commit comments

Comments
 (0)