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,32 @@ 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", "8.0"]
6664 exclude :
6765 # rails 7 requires ruby >= 2.7.0
6866 - ruby : " 2.6"
69- gemfile : " rails_7.0"
67+ rails : " 7.0"
68+ - ruby : " 2.6"
69+ rails : " 7.1"
7070 - 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"
7276 steps :
7377 - name : Checkout source
74- uses : actions/checkout@v2
78+ uses : actions/checkout@v4
7579 - name : Setup ruby
7680 uses : ruby/setup-ruby@v1
7781 with :
8185 gem install bundler -v 2.4.22
8286 bundle install --jobs 4 --retry 3
8387 env :
84- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
88+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
8589
8690 # MySQL db was created above, sqlite will be created during test suite,
8791 # when migrations occur, so we only need to create the postgres db. I
@@ -105,13 +109,13 @@ jobs:
105109 - name : Test, sqlite
106110 run : bundle exec rake test
107111 env :
108- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
112+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
109113 DB : sqlite
110114 - name : Test, mysql
111115 run : bundle exec rake test
112116 env :
113117 BACKTRACE : 1
114- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
118+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
115119 DB : mysql
116120 AUTHLOGIC_DB_NAME : authlogic
117121 AUTHLOGIC_DB_USER : root
@@ -121,7 +125,7 @@ jobs:
121125 run : bundle exec rake test
122126 env :
123127 BACKTRACE : 1
124- BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.rb
128+ BUNDLE_GEMFILE : gemfiles/rails_ ${{ matrix.rails }}.rb
125129 DB : postgres
126130 AUTHLOGIC_DB_NAME : authlogic
127131 AUTHLOGIC_DB_USER : postgres
0 commit comments