File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 92
92
RAILS_ENV : test
93
93
run : bin/rspec
94
94
95
+ - name : Upload coverage reports to Codecov
96
+
97
+ with :
98
+ token : ${{ secrets.CODECOV_TOKEN }}
99
+
95
100
setup :
96
101
name : Setup
97
102
runs-on : ubuntu-latest
@@ -164,6 +169,11 @@ jobs:
164
169
run : |
165
170
npm run test -- --watch=false
166
171
172
+ - name : Upload coverage reports to Codecov
173
+
174
+ with :
175
+ token : ${{ secrets.CODECOV_TOKEN }}
176
+
167
177
assets :
168
178
name : Assets
169
179
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- require "simplecov-tailwindcss"
4
-
5
- SimpleCov . formatter = SimpleCov ::Formatter ::TailwindFormatter
3
+ if ENV [ "CI" ]
4
+ require "simplecov-cobertura"
5
+ SimpleCov . formatter = SimpleCov ::Formatter ::CoberturaFormatter
6
+ else
7
+ require "simplecov-tailwindcss"
8
+ SimpleCov . formatter = SimpleCov ::Formatter ::TailwindFormatter
9
+ end
6
10
7
11
SimpleCov . profiles . define :joyofrails do
8
12
load_profile "test_frameworks"
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ group :test do
58
58
gem "selenium-webdriver" # Ruby bindings for Selenium [https://www.rubydoc.info/gems/selenium-webdriver/frames]
59
59
gem "cuprite" , git : "https://github.com/rubycdp/cuprite"
60
60
gem "simplecov" , require : false # Code coverage for Ruby [https://github.com/simplecov-ruby/simplecov]
61
- gem "simplecov-tailwindcss" , require : false
61
+ gem "simplecov-tailwindcss" , require : false # Alternative HTML formatter for SimpleCov [https://github.com/chiefpansancolt/simplecov-tailwindcss]
62
+ gem "simplecov-cobertura" , require : false # Produces Cobertura formatted XML from SimpleCov. [https://github.com/dashingrocket/simplecov-cobertura]
62
63
gem "webmock" , require : false # Library for stubbing HTTP requests [https://github.com/bblimke/webmock]
63
64
end
64
65
Original file line number Diff line number Diff line change 437
437
docile (~> 1.1 )
438
438
simplecov-html (~> 0.11 )
439
439
simplecov_json_formatter (~> 0.1 )
440
+ simplecov-cobertura (2.1.0 )
441
+ rexml
442
+ simplecov (~> 0.19 )
440
443
simplecov-html (0.12.3 )
441
444
simplecov-tailwindcss (2.2.0 )
442
445
simplecov (~> 0.16 )
@@ -574,6 +577,7 @@ DEPENDENCIES
574
577
ruby_wasm (~> 2.5 )
575
578
selenium-webdriver
576
579
simplecov
580
+ simplecov-cobertura
577
581
simplecov-tailwindcss
578
582
sitepress-rails
579
583
solid_cache
You can’t perform that action at this time.
0 commit comments