23
23
24
24
# The test job is a matrix of ruby/rails versions.
25
25
gha-job-authlogic-test :
26
- name : Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}.rb
26
+ name : Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
27
27
runs-on : ubuntu-latest
28
28
services :
29
29
gha-service-authlogic-mysql :
@@ -50,28 +50,32 @@ jobs:
50
50
ports :
51
51
- 5432:5432
52
52
strategy :
53
+ fail-fast : false
53
54
# Unlike TravisCI, the database will not be part of the matrix. Each
54
55
# sub-job in the matrix tests all three databases. Alternatively, we could
55
56
# have set this up with each database as a separate job, but then we'd be
56
57
# duplicating the matrix configuration three times.
57
58
matrix :
58
- gemfile :
59
- ["rails_5.2", "rails_6.0", "rails_6.1", "rails_7.0", "rails_7.1"]
60
-
61
59
# To keep matrix size down, only test highest and lowest rubies. In
62
- # `.rubocopy .yml`, set `TargetRubyVersion`, to the lowest ruby version
60
+ # `.rubocop .yml`, set `TargetRubyVersion`, to the lowest ruby version
63
61
# tested here.
64
- ruby : ["2.6", "2.7 "]
65
-
62
+ ruby : ["2.6", "3.3 "]
63
+ rails : ["5.2", "6.0", "6.1", "7.0", "7.1", "7.2", "8.0"]
66
64
exclude :
67
65
# rails 7 requires ruby >= 2.7.0
68
66
- ruby : " 2.6"
69
- gemfile : " rails_7.0"
67
+ rails : " 7.0"
68
+ - ruby : " 2.6"
69
+ rails : " 7.1"
70
70
- ruby : " 2.6"
71
- gemfile : " rails_7.1"
71
+ rails : " 7.2"
72
+ - ruby : " 2.6"
73
+ rails : " 8.0"
74
+ - ruby : " 3.3"
75
+ rails : " 5.2"
72
76
steps :
73
77
- name : Checkout source
74
- uses : actions/checkout@v2
78
+ uses : actions/checkout@v4
75
79
- name : Setup ruby
76
80
uses : ruby/setup-ruby@v1
77
81
with :
81
85
gem install bundler -v 2.4.22
82
86
bundle install --jobs 4 --retry 3
83
87
env :
84
- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
88
+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
85
89
86
90
# MySQL db was created above, sqlite will be created during test suite,
87
91
# when migrations occur, so we only need to create the postgres db. I
@@ -105,13 +109,13 @@ jobs:
105
109
- name : Test, sqlite
106
110
run : bundle exec rake test
107
111
env :
108
- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
112
+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
109
113
DB : sqlite
110
114
- name : Test, mysql
111
115
run : bundle exec rake test
112
116
env :
113
117
BACKTRACE : 1
114
- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
118
+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
115
119
DB : mysql
116
120
AUTHLOGIC_DB_NAME : authlogic
117
121
AUTHLOGIC_DB_USER : root
@@ -121,7 +125,7 @@ jobs:
121
125
run : bundle exec rake test
122
126
env :
123
127
BACKTRACE : 1
124
- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
128
+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
125
129
DB : postgres
126
130
AUTHLOGIC_DB_NAME : authlogic
127
131
AUTHLOGIC_DB_USER : postgres
0 commit comments