1313 strategy :
1414 fail-fast : false
1515 matrix :
16- rails : ['7.2.2.1', '8.0.2']
17- ruby-version : ['3.2', '3.3', '3.4', '3.5.0-preview1']
18- postgres-version : ['17']
16+ rails-version :
17+ - 7.1
18+ - 7.2
19+ - 8.0
20+ - 8.1
21+ ruby-version :
22+ - 3.3
23+ - 3.4
24+ - 4.0
25+ postgres-version :
26+ - 18
1927
2028 steps :
2129 - name : Install Postgresql
3543 - uses : actions/checkout@v4
3644
3745 - name : Fix activerecord-postgis-adapter
38- if : ${{ matrix.rails == '8.0.1' }}
46+ if : ${{ matrix.rails-version == '8.0.1' }}
3947 run : |
4048 echo "gem 'activerecord-postgis-adapter', github: 'rgeo/activerecord-postgis-adapter'" >> Gemfile
4149
@@ -45,10 +53,11 @@ jobs:
4553 bundler-cache : true # runs 'bundle install' and caches installed gems automatically
4654
4755 - run : |
48- sed -i -e "s/spec.add_runtime_dependency *'activerecord', *'>= [[:digit:]]\+\(\.[[:digit:]]\+\)*'/spec.add_runtime_dependency 'activerecord', '${{ matrix.rails }}'/" activerecord-filter.gemspec
56+ sed -i -e "s/spec.add_runtime_dependency *'activerecord', *'>= [[:digit:]]\+\(\.[[:digit:]]\+\)*'/spec.add_runtime_dependency 'activerecord', '${{ matrix.rails-version }}'/" activerecord-filter.gemspec
4957 cat activerecord-filter.gemspec
5058 rm Gemfile.lock
51- bundle
59+ bundle install --jobs=3 --retry=3
60+ bundle update --jobs=3 --retry=3
5261
5362 - run : bundle exec rake test
5463
@@ -59,13 +68,19 @@ jobs:
5968 strategy :
6069 fail-fast : false
6170 matrix :
62- rails : ['7.1.5.1', '7.2.2.1', '8.0.2']
63- ruby-version : ['3.4']
64- postgres-version : ['17']
71+ rails-version :
72+ - 7.1.6
73+ - 7.2.3
74+ - 8.0.4
75+ - 8.1.1
76+ ruby-version :
77+ - 3.4
78+ postgres-version :
79+ - 18
6580 exclude :
66- - rails : ' 7.1.5.1 '
81+ - rails-version : ' 7.1.6 '
6782 ruby-version : ' 3.4'
68- postgres-version : ' 17 '
83+ postgres-version : ' 18 '
6984
7085 steps :
7186 - name : Install Postgresql
91106
92107 - name : Download Rails
93108 run : |
94- git clone --branch v${{ matrix.rails }} https://github.com/rails/rails.git ~/rails
109+ git clone --branch v${{ matrix.rails-version }} https://github.com/rails/rails.git ~/rails
95110 pushd ~/rails
96111 cat /home/runner/work/_temp/*.sh
97112 sed -i "s/Gem.ruby, '-w'/Gem.ruby, '-w0'/" ~/rails/activerecord/Rakefile
@@ -119,10 +134,15 @@ jobs:
119134 strategy :
120135 fail-fast : false
121136 matrix :
122- rails : ['7.1.5.1', '7.2.2.1', '8.0.2']
123- ruby-version : ['3.4']
137+ rails-version :
138+ - 7.1.6
139+ - 7.2.3
140+ - 8.0.4
141+ - 8.1.1
142+ ruby-version :
143+ - 3.4
124144 exclude :
125- - rails : ' 7.1.5.1 '
145+ - rails-version : ' 7.1.6 '
126146 ruby-version : ' 3.4'
127147
128148 steps :
@@ -135,7 +155,7 @@ jobs:
135155
136156 - name : Download Rails
137157 run : |
138- git clone --branch v${{ matrix.rails }} https://github.com/rails/rails.git ~/rails
158+ git clone --branch v${{ matrix.rails-version }} https://github.com/rails/rails.git ~/rails
139159 pushd ~/rails
140160 cat /home/runner/work/_temp/*.sh
141161 sed -i "s/Gem.ruby, '-w'/Gem.ruby, '-w0'/" ~/rails/activerecord/Rakefile
@@ -165,10 +185,15 @@ jobs:
165185 strategy :
166186 fail-fast : false
167187 matrix :
168- rails : ['7.1.5.1', '7.2.2.1', '8.0.2']
169- ruby-version : ['3.4']
188+ rails-version :
189+ - 7.1.6
190+ - 7.2.3
191+ - 8.0.4
192+ - 8.1.1
193+ ruby-version :
194+ - 3.4
170195 exclude :
171- - rails : ' 7.1.5.1 '
196+ - rails-version : ' 7.1.6 '
172197 ruby-version : ' 3.4'
173198
174199 steps :
@@ -187,7 +212,7 @@ jobs:
187212
188213 - name : Download Rails
189214 run : |
190- git clone --branch v${{ matrix.rails }} https://github.com/rails/rails.git ~/rails
215+ git clone --branch v${{ matrix.rails-version }} https://github.com/rails/rails.git ~/rails
191216 pushd ~/rails
192217 cat /home/runner/work/_temp/*.sh
193218 sed -i "s/Gem.ruby, '-w'/Gem.ruby, '-w0'/" ~/rails/activerecord/Rakefile
0 commit comments