1
1
version : 2.1
2
+ orbs :
3
+ codecov : codecov/codecov@5
2
4
jobs :
3
- test-ruby27 :
5
+ test-ruby31 :
4
6
docker :
5
- - image : cimg/ruby:2.7 -node
7
+ - image : cimg/ruby:3.1 -node
6
8
- image : cimg/mysql:8.0
7
- command : [--default-authentication-plugin=mysql_native_password]
9
+ command : [ --default-authentication-plugin=mysql_native_password ]
8
10
environment :
9
11
MYSQL_ROOT_HOST : ' %'
10
12
MYSQL_ROOT_PASSWORD : ' root'
22
24
- checkout
23
25
- restore_cache :
24
26
keys :
25
- - qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
26
- - qpixel-ruby27 -
27
+ - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
28
+ - qpixel-ruby31 -
27
29
- run :
28
30
name : Install Bundler & gems
29
31
command : |
34
36
command : |
35
37
bundle clean --force
36
38
- save_cache :
37
- key : qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
39
+ key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
38
40
paths :
39
41
- ~/gems
40
42
- run :
@@ -56,21 +58,19 @@ jobs:
56
58
name : Current revision
57
59
command : |
58
60
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
63
61
- run :
64
62
name : Test
63
+ environment :
64
+ RAILS_ENV : test
65
65
command : |
66
66
bundle exec rails test
67
67
- store_test_results :
68
68
path : " ~/qpixel/test/reports"
69
- system-test-ruby27 :
69
+ system-test-ruby31 :
70
70
docker :
71
- - image : cimg/ruby:2.7 -browsers
71
+ - image : cimg/ruby:3.1 -browsers
72
72
- image : cimg/mysql:8.0
73
- command : [--default-authentication-plugin=mysql_native_password]
73
+ command : [ --default-authentication-plugin=mysql_native_password ]
74
74
environment :
75
75
MYSQL_ROOT_HOST : ' %'
76
76
MYSQL_ROOT_PASSWORD : ' root'
88
88
- checkout
89
89
- restore_cache :
90
90
keys :
91
- - qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
92
- - qpixel-ruby27 -
91
+ - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
92
+ - qpixel-ruby31 -
93
93
- run :
94
94
name : Install Bundler & gems
95
95
command : |
@@ -100,7 +100,7 @@ jobs:
100
100
command : |
101
101
bundle clean --force
102
102
- save_cache :
103
- key : qpixel-ruby27 -{{ checksum "Gemfile.lock" }}
103
+ key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
104
104
paths :
105
105
- ~/gems
106
106
- run :
@@ -124,6 +124,8 @@ jobs:
124
124
git rev-parse $(git rev-parse --abbrev-ref HEAD)
125
125
- run :
126
126
name : Test
127
+ environment :
128
+ RAILS_ENV : test
127
129
command : |
128
130
bundle exec rails test:system
129
131
- store_test_results :
@@ -132,9 +134,9 @@ jobs:
132
134
path : " ~/qpixel/tmp/screenshots"
133
135
when : on_fail
134
136
135
- test-ruby31 :
137
+ test-ruby32 :
136
138
docker :
137
- - image : cimg/ruby:3.1 -node
139
+ - image : cimg/ruby:3.2 -node
138
140
- image : cimg/mysql:8.0
139
141
command : [ --default-authentication-plugin=mysql_native_password ]
140
142
environment :
@@ -154,8 +156,8 @@ jobs:
154
156
- checkout
155
157
- restore_cache :
156
158
keys :
157
- - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
158
- - qpixel-ruby31 -
159
+ - qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
160
+ - qpixel-ruby32 -
159
161
- run :
160
162
name : Install Bundler & gems
161
163
command : |
@@ -166,7 +168,7 @@ jobs:
166
168
command : |
167
169
bundle clean --force
168
170
- save_cache :
169
- key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
171
+ key : qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
170
172
paths :
171
173
- ~/gems
172
174
- run :
@@ -188,19 +190,18 @@ jobs:
188
190
name : Current revision
189
191
command : |
190
192
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
195
193
- run :
196
194
name : Test
195
+ environment :
196
+ RAILS_ENV : test
197
197
command : |
198
198
bundle exec rails test
199
199
- store_test_results :
200
200
path : " ~/qpixel/test/reports"
201
- system-test-ruby31 :
201
+ - codecov/upload
202
+ system-test-ruby32 :
202
203
docker :
203
- - image : cimg/ruby:3.1 -browsers
204
+ - image : cimg/ruby:3.2 -browsers
204
205
- image : cimg/mysql:8.0
205
206
command : [ --default-authentication-plugin=mysql_native_password ]
206
207
environment :
@@ -220,8 +221,8 @@ jobs:
220
221
- checkout
221
222
- restore_cache :
222
223
keys :
223
- - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
224
- - qpixel-ruby31 -
224
+ - qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
225
+ - qpixel-ruby32 -
225
226
- run :
226
227
name : Install Bundler & gems
227
228
command : |
@@ -232,7 +233,7 @@ jobs:
232
233
command : |
233
234
bundle clean --force
234
235
- save_cache :
235
- key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
236
+ key : qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
236
237
paths :
237
238
- ~/gems
238
239
- run :
@@ -256,6 +257,8 @@ jobs:
256
257
git rev-parse $(git rev-parse --abbrev-ref HEAD)
257
258
- run :
258
259
name : Test
260
+ environment :
261
+ RAILS_ENV : test
259
262
command : |
260
263
bundle exec rails test:system
261
264
- store_test_results :
@@ -266,7 +269,7 @@ jobs:
266
269
267
270
rubocop :
268
271
docker :
269
- - image : cimg/ruby:3.1 -node
272
+ - image : cimg/ruby:3.2 -node
270
273
271
274
working_directory : ~/qpixel
272
275
@@ -279,8 +282,8 @@ jobs:
279
282
- checkout
280
283
- restore_cache :
281
284
keys :
282
- - qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
283
- - qpixel-ruby31 -
285
+ - qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
286
+ - qpixel-ruby32 -
284
287
- run :
285
288
name : Install Bundler & gems
286
289
command : |
@@ -291,7 +294,7 @@ jobs:
291
294
command : |
292
295
bundle clean --force
293
296
- save_cache :
294
- key : qpixel-ruby31 -{{ checksum "Gemfile.lock" }}
297
+ key : qpixel-ruby32 -{{ checksum "Gemfile.lock" }}
295
298
paths :
296
299
- ~/gems
297
300
- run :
@@ -301,7 +304,7 @@ jobs:
301
304
302
305
deploy :
303
306
docker :
304
- - image : cimg/ruby:3.1 -node
307
+ - image : cimg/ruby:3.2 -node
305
308
306
309
working_directory : ~/qpixel
307
310
@@ -319,17 +322,15 @@ jobs:
319
322
workflows :
320
323
test_lint :
321
324
jobs :
322
- - test-ruby27
323
325
- test-ruby31
324
- - system-test-ruby27
325
326
- system-test-ruby31
327
+ - test-ruby32
328
+ - system-test-ruby32
326
329
- rubocop
327
330
- deploy :
328
331
requires :
329
- - test-ruby27
330
- - test-ruby31
331
- - system-test-ruby27
332
- - system-test-ruby31
332
+ - test-ruby32
333
+ - system-test-ruby32
333
334
- rubocop
334
335
filters :
335
336
branches :
0 commit comments