File tree 6 files changed +21
-12
lines changed
6 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 69
69
- name : Run tests
70
70
run : bin/rspec -fd
71
71
continue-on-error : ${{ matrix.allow-failure }}
72
+ - name : Send test coverage report to codecov.io
73
+ uses : codecov/codecov-action@v4
74
+ with :
75
+ lags : unittests
76
+ fail_ci_if_error : true
77
+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ gem 'dalli'
45
45
gem 'rest-client'
46
46
47
47
group :test do
48
- gem 'codecov ' , :require => false
48
+ gem 'simplecov-cobertura ' , :require => false
49
49
gem 'mongoid_cleaner' , '~> 1.2.0'
50
50
gem 'factory_bot'
51
51
gem 'faker'
Original file line number Diff line number Diff line change 29
29
bigdecimal (3.1.6 )
30
30
bson (4.15.0 )
31
31
bson_ext (1.5.1 )
32
- codecov (0.6.0 )
33
- simplecov (>= 0.15 , < 0.22 )
34
32
coderay (1.1.3 )
35
33
concurrent-ruby (1.2.3 )
36
34
crack (1.0.0 )
@@ -201,10 +199,13 @@ GEM
201
199
rspec-support (3.13.0 )
202
200
ruby2_keywords (0.0.5 )
203
201
shellany (0.0.1 )
204
- simplecov (0.21.2 )
202
+ simplecov (0.22.0 )
205
203
docile (~> 1.1 )
206
204
simplecov-html (~> 0.11 )
207
205
simplecov_json_formatter (~> 0.1 )
206
+ simplecov-cobertura (2.1.0 )
207
+ rexml
208
+ simplecov (~> 0.19 )
208
209
simplecov-html (0.12.3 )
209
210
simplecov_json_formatter (0.1.4 )
210
211
sinatra (4.0.0 )
@@ -241,7 +242,6 @@ DEPENDENCIES
241
242
bson
242
243
bson_ext
243
244
bundler
244
- codecov
245
245
dalli
246
246
ddtrace
247
247
delayed_job
@@ -272,6 +272,7 @@ DEPENDENCIES
272
272
rspec
273
273
rspec-collection_matchers
274
274
rspec-its
275
+ simplecov-cobertura
275
276
sinatra
276
277
sinatra-param (~> 1.4 )
277
278
timecop (~> 0.9.5 )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ gem 'dalli'
46
46
gem 'rest-client'
47
47
48
48
group :test do
49
- gem 'codecov ', :require => false
49
+ gem 'simplecov-cobertura ', :require => false
50
50
gem 'mongoid_cleaner', '~> 1.2.0'
51
51
gem 'factory_bot'
52
52
gem 'faker'
Original file line number Diff line number Diff line change 29
29
bigdecimal (3.1.6)
30
30
bson (4.15.0)
31
31
bson_ext (1.5.1)
32
- codecov (0.6.0)
33
- simplecov (>= 0.15, < 0.22)
34
32
coderay (1.1.3)
35
33
concurrent-ruby (1.2.3)
36
34
crack (1.0.0)
@@ -210,10 +208,13 @@ GEM
210
208
rspec-support (3.13.0)
211
209
ruby2_keywords (0.0.5)
212
210
shellany (0.0.1)
213
- simplecov (0.21.2 )
211
+ simplecov (0.22.0 )
214
212
docile (~> 1.1)
215
213
simplecov-html (~> 0.11)
216
214
simplecov_json_formatter (~> 0.1)
215
+ simplecov-cobertura (2.1.0)
216
+ rexml
217
+ simplecov (~> 0.19)
217
218
simplecov-html (0.12.3)
218
219
simplecov_json_formatter (0.1.4)
219
220
sinatra (4.0.0)
@@ -245,14 +246,14 @@ GEM
245
246
PLATFORMS
246
247
aarch64-linux
247
248
arm64-darwin-22
249
+ arm64-darwin-23
248
250
x86_64-linux
249
251
250
252
DEPENDENCIES
251
253
activemodel
252
254
bson
253
255
bson_ext
254
256
bundler
255
- codecov
256
257
dalli
257
258
ddtrace
258
259
delayed_job
@@ -284,6 +285,7 @@ DEPENDENCIES
284
285
rspec
285
286
rspec-collection_matchers
286
287
rspec-its
288
+ simplecov-cobertura
287
289
sinatra
288
290
sinatra-param (~> 1.4)
289
291
timecop (~> 0.9.5)
Original file line number Diff line number Diff line change 3
3
require 'simplecov'
4
4
SimpleCov . start
5
5
if ENV [ 'CI' ] =='true'
6
- require 'codecov '
7
- SimpleCov . formatter = SimpleCov ::Formatter ::Codecov
6
+ require 'simplecov-cobertura '
7
+ SimpleCov . formatter = SimpleCov ::Formatter ::CoberturaFormatter
8
8
end
9
9
10
10
require File . join ( File . dirname ( __FILE__ ) , '..' , 'app' )
You can’t perform that action at this time.
0 commit comments