Skip to content

Commit 65f7d05

Browse files
authored
Test on new Ruby/Rails versions (#52)
1 parent 854ee32 commit 65f7d05

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0']
31+
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0', 'rails_7.1']
3232

33-
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
33+
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
3434

3535
exclude:
3636
# Rails 5.2 requires Ruby < 3.0
@@ -39,6 +39,10 @@ jobs:
3939
gemfile: 'rails_5.2'
4040
- ruby: '3.1'
4141
gemfile: 'rails_5.2'
42+
- ruby: '3.2'
43+
gemfile: 'rails_5.2'
44+
- ruby: '3.3'
45+
gemfile: 'rails_5.2'
4246
# Rails >= 6 requires Ruby >= 2.5
4347
- ruby: '2.4'
4448
gemfile: 'rails_6.0'
@@ -51,6 +55,12 @@ jobs:
5155
gemfile: 'rails_7.0'
5256
- ruby: '2.6'
5357
gemfile: 'rails_7.0'
58+
- ruby: '2.4'
59+
gemfile: 'rails_7.1'
60+
- ruby: '2.5'
61+
gemfile: 'rails_7.1'
62+
- ruby: '2.6'
63+
gemfile: 'rails_7.1'
5464

5565
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
5666
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
@@ -66,3 +76,15 @@ jobs:
6676

6777
- name: Run tests
6878
run: bundle exec rake
79+
80+
tests:
81+
runs-on: ubuntu-latest
82+
needs: test
83+
if: always()
84+
steps:
85+
- name: All tests ok
86+
if: ${{ !(contains(needs.*.result, 'failure')) }}
87+
run: exit 0
88+
- name: Some tests failed
89+
if: ${{ contains(needs.*.result, 'failure') }}
90+
run: exit 1

Appraisals

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ appraise 'rails-7.0' do
1919
gem 'activemodel', '~> 7.0.0'
2020
gem 'activesupport', '~> 7.0.0'
2121
end
22+
23+
appraise 'rails-7.1' do
24+
gem 'activemodel', '~> 7.1.0'
25+
gem 'activesupport', '~> 7.1.0'
26+
end

gemfiles/rails_7.1.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activemodel", "~> 7.1.0"
6+
gem "activesupport", "~> 7.1.0"
7+
8+
gemspec path: "../"

0 commit comments

Comments
 (0)