2323
2424 # The test job is a matrix of ruby/rails versions.
2525 gha-job-authlogic-test :
26- name : Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}.rb
26+ name : Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
2727 runs-on : ubuntu-latest
2828 services :
2929 gha-service-authlogic-mysql :
@@ -50,28 +50,30 @@ jobs:
5050 ports :
5151 - 5432:5432
5252 strategy :
53+ fail-fast : false
5354 # Unlike TravisCI, the database will not be part of the matrix. Each
5455 # sub-job in the matrix tests all three databases. Alternatively, we could
5556 # have set this up with each database as a separate job, but then we'd be
5657 # duplicating the matrix configuration three times.
5758 matrix :
58- gemfile :
59- ["rails_5.2", "rails_6.0", "rails_6.1", "rails_7.0", "rails_7.1"]
60-
6159 # 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
6361 # 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"]
6664 exclude :
6765 # rails 7 requires ruby >= 2.7.0
6866 - ruby : " 2.6"
69- gemfile : " rails_7 .0"
67+ rails : " 7 .0"
7068 - ruby : " 2.6"
71- gemfile : " rails_7.1"
69+ rails : " 7.1"
70+ - ruby : " 2.6"
71+ rails : " 7.2"
72+ - ruby : " 3.3"
73+ rails : " 5.2"
7274 steps :
7375 - name : Checkout source
74- uses : actions/checkout@v2
76+ uses : actions/checkout@v4
7577 - name : Setup ruby
7678 uses : ruby/setup-ruby@v1
7779 with :
8183 gem install bundler -v 2.4.22
8284 bundle install --jobs 4 --retry 3
8385 env :
84- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
86+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
8587
8688 # MySQL db was created above, sqlite will be created during test suite,
8789 # when migrations occur, so we only need to create the postgres db. I
@@ -105,13 +107,13 @@ jobs:
105107 - name : Test, sqlite
106108 run : bundle exec rake test
107109 env :
108- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
110+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
109111 DB : sqlite
110112 - name : Test, mysql
111113 run : bundle exec rake test
112114 env :
113115 BACKTRACE : 1
114- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
116+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
115117 DB : mysql
116118 AUTHLOGIC_DB_NAME : authlogic
117119 AUTHLOGIC_DB_USER : root
@@ -121,7 +123,7 @@ jobs:
121123 run : bundle exec rake test
122124 env :
123125 BACKTRACE : 1
124- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
126+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
125127 DB : postgres
126128 AUTHLOGIC_DB_NAME : authlogic
127129 AUTHLOGIC_DB_USER : postgres
0 commit comments