11version : 2.1
2+ orbs :
3+ codecov : codecov/codecov@5
24jobs :
3- test-ruby27 :
5+ test-ruby31 :
46 docker :
5- - image : cimg/ruby:2.7 -node
7+ - image : cimg/ruby:3.1 -node
68 - image : cimg/mysql:8.0
7- command : [--default-authentication-plugin=mysql_native_password]
9+ command : [ --default-authentication-plugin=mysql_native_password ]
810 environment :
911 MYSQL_ROOT_HOST : ' %'
1012 MYSQL_ROOT_PASSWORD : ' root'
2224 - checkout
2325 - restore_cache :
2426 keys :
25- - qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
26- - qpixel-ruby27 -
27+ - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
28+ - qpixel-ruby31 -
2729 - run :
2830 name : Install Bundler & gems
2931 command : |
3436 command : |
3537 bundle clean --force
3638 - save_cache :
37- key : qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
39+ key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
3840 paths :
3941 - ~/gems
4042 - run :
@@ -56,21 +58,17 @@ jobs:
5658 name : Current revision
5759 command : |
5860 git rev-parse $(git rev-parse --abbrev-ref HEAD)
59- - run :
60- name : Coveralls token
61- command : |
62- if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo "Skipping coveralls"; else echo "repo_token: $COVERALLS_REPO_TOKEN" > .coveralls.yml; fi
6361 - run :
6462 name : Test
6563 command : |
6664 bundle exec rails test
6765 - store_test_results :
6866 path : " ~/qpixel/test/reports"
69- system-test-ruby27 :
67+ system-test-ruby31 :
7068 docker :
71- - image : cimg/ruby:2.7 -browsers
69+ - image : cimg/ruby:3.1 -browsers
7270 - image : cimg/mysql:8.0
73- command : [--default-authentication-plugin=mysql_native_password]
71+ command : [ --default-authentication-plugin=mysql_native_password ]
7472 environment :
7573 MYSQL_ROOT_HOST : ' %'
7674 MYSQL_ROOT_PASSWORD : ' root'
8886 - checkout
8987 - restore_cache :
9088 keys :
91- - qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
92- - qpixel-ruby27 -
89+ - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
90+ - qpixel-ruby31 -
9391 - run :
9492 name : Install Bundler & gems
9593 command : |
10098 command : |
10199 bundle clean --force
102100 - save_cache :
103- key : qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
101+ key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
104102 paths :
105103 - ~/gems
106104 - run :
@@ -132,9 +130,9 @@ jobs:
132130 path : " ~/qpixel/tmp/screenshots"
133131 when : on_fail
134132
135- test-ruby31 :
133+ test-ruby32 :
136134 docker :
137- - image : cimg/ruby:3.1 -node
135+ - image : cimg/ruby:3.2 -node
138136 - image : cimg/mysql:8.0
139137 command : [ --default-authentication-plugin=mysql_native_password ]
140138 environment :
@@ -154,8 +152,8 @@ jobs:
154152 - checkout
155153 - restore_cache :
156154 keys :
157- - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
158- - qpixel-ruby31 -
155+ - qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
156+ - qpixel-ruby32 -
159157 - run :
160158 name : Install Bundler & gems
161159 command : |
@@ -166,7 +164,7 @@ jobs:
166164 command : |
167165 bundle clean --force
168166 - save_cache :
169- key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
167+ key : qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
170168 paths :
171169 - ~/gems
172170 - run :
@@ -188,19 +186,16 @@ jobs:
188186 name : Current revision
189187 command : |
190188 git rev-parse $(git rev-parse --abbrev-ref HEAD)
191- - run :
192- name : Coveralls token
193- command : |
194- if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo "Skipping coveralls"; else echo "repo_token: $COVERALLS_REPO_TOKEN" > .coveralls.yml; fi
195189 - run :
196190 name : Test
197191 command : |
198192 bundle exec rails test
199193 - store_test_results :
200194 path : " ~/qpixel/test/reports"
201- system-test-ruby31 :
195+ - codecov/upload
196+ system-test-ruby32 :
202197 docker :
203- - image : cimg/ruby:3.1 -browsers
198+ - image : cimg/ruby:3.2 -browsers
204199 - image : cimg/mysql:8.0
205200 command : [ --default-authentication-plugin=mysql_native_password ]
206201 environment :
@@ -220,8 +215,8 @@ jobs:
220215 - checkout
221216 - restore_cache :
222217 keys :
223- - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
224- - qpixel-ruby31 -
218+ - qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
219+ - qpixel-ruby32 -
225220 - run :
226221 name : Install Bundler & gems
227222 command : |
@@ -232,7 +227,7 @@ jobs:
232227 command : |
233228 bundle clean --force
234229 - save_cache :
235- key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
230+ key : qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
236231 paths :
237232 - ~/gems
238233 - run :
@@ -266,7 +261,7 @@ jobs:
266261
267262 rubocop :
268263 docker :
269- - image : cimg/ruby:3.1 -node
264+ - image : cimg/ruby:3.2 -node
270265
271266 working_directory : ~/qpixel
272267
@@ -279,8 +274,8 @@ jobs:
279274 - checkout
280275 - restore_cache :
281276 keys :
282- - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
283- - qpixel-ruby31 -
277+ - qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
278+ - qpixel-ruby32 -
284279 - run :
285280 name : Install Bundler & gems
286281 command : |
@@ -291,7 +286,7 @@ jobs:
291286 command : |
292287 bundle clean --force
293288 - save_cache :
294- key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
289+ key : qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
295290 paths :
296291 - ~/gems
297292 - run :
@@ -301,7 +296,7 @@ jobs:
301296
302297 deploy :
303298 docker :
304- - image : cimg/ruby:3.1 -node
299+ - image : cimg/ruby:3.2 -node
305300
306301 working_directory : ~/qpixel
307302
@@ -319,17 +314,15 @@ jobs:
319314workflows :
320315 test_lint :
321316 jobs :
322- - test-ruby27
323317 - test-ruby31
324- - system-test-ruby27
325318 - system-test-ruby31
319+ - test-ruby32
320+ - system-test-ruby32
326321 - rubocop
327322 - deploy :
328323 requires :
329- - test-ruby27
330- - test-ruby31
331- - system-test-ruby27
332- - system-test-ruby31
324+ - test-ruby32
325+ - system-test-ruby32
333326 - rubocop
334327 filters :
335328 branches :
0 commit comments