Skip to content

Commit daad1cd

Browse files
Adds Ruby 3.2 to the CI matrix (#588)
* Adds Ruby 3.2 to the CI matrix * Use ruby/setup-ruby so the correct bundler is installed for the Ruby version.
1 parent 584d329 commit daad1cd

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/activerecord.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ jobs:
77
strategy:
88
matrix:
99
gemfile: [activerecord_4, activerecord_5, activerecord_6]
10-
ruby: [2.5.7, 2.6.5, 2.7.2]
10+
ruby: [2.5.9, 2.6.10, 2.7.7]
1111
include:
12+
- gemfile: activerecord_7
13+
ruby: '3.2'
1214
- gemfile: activerecord_7
1315
ruby: '3.1'
1416
- gemfile: activerecord_7
@@ -20,15 +22,12 @@ jobs:
2022
ADAPTER: active_record
2123
steps:
2224
- uses: actions/checkout@v3
25+
- run: sudo apt-get install -y libsqlite3-dev
2326
- name: Setup ruby
2427
uses: ruby/setup-ruby@v1
2528
with:
2629
ruby-version: ${{ matrix.ruby }}
27-
- run: sudo apt-get install -y libsqlite3-dev
28-
- run: gem update --system
29-
- run: gem install bundler
30-
- run: gem --version
31-
- run: bundle install
30+
bundler-cache: true
3231
- name: Run Tests
3332
run: |
3433
bundle exec rake

.github/workflows/mongoid.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,18 @@ jobs:
1212
strategy:
1313
matrix:
1414
gemfile: [mongoid_5]
15-
ruby: [2.5.7, 2.6.5, 2.7.2]
15+
ruby: [2.5.9, 2.6.10, 2.7.7]
1616
env:
1717
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
1818
ADAPTER: mongoid
1919
steps:
2020
- uses: actions/checkout@v3
21+
- run: sudo apt-get install -y libsqlite3-dev
2122
- name: Setup ruby
2223
uses: ruby/setup-ruby@v1
2324
with:
2425
ruby-version: ${{ matrix.ruby }}
25-
- run: sudo apt-get install -y libsqlite3-dev
26-
- run: gem update --system
27-
- run: gem install bundler
28-
- run: gem --version
29-
- run: bundle install
26+
bundler-cache: true
3027
- name: Run Tests
3128
run: |
3229
bundle exec rake

0 commit comments

Comments
 (0)