File tree Expand file tree Collapse file tree 4 files changed +20
-7
lines changed Expand file tree Collapse file tree 4 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 46
46
- uses : actions/checkout@v4
47
47
- uses : ruby/setup-ruby@v1
48
48
with :
49
- ruby-version : 2.7
49
+ ruby-version : 3.3
50
50
- name : Cache gem
51
51
uses : actions/cache@v4
52
52
with :
@@ -57,18 +57,20 @@ jobs:
57
57
- name : Bundle install
58
58
run : |
59
59
bundle config path vendor/bundle
60
- gem install bundler -v '2.1.4'
60
+ gem install bundler
61
61
bundle install
62
62
- name : Test
63
63
env :
64
64
RAILS_ENV : test
65
+ MT_NO_PLUGINS : 1
65
66
run : |
66
67
bundle exec rake test
67
68
bundle exec rake db:migrate && bundle exec rspec --color --format doc
68
- # - name: Send coverage
69
- # uses: paambaati/[email protected]
70
- # env:
71
- # CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
69
+ - name : Send coverage
70
+ uses : qltysh/qlty-action/coverage@8d5c844f32f80364ccc135534671640466e7f610
71
+ with :
72
+ oidc : true
73
+ files : ${{github.workspace}}/coverage/coverage.json:simplecov
72
74
73
75
deploy :
74
76
name : Release
Original file line number Diff line number Diff line change 20
20
group :test do
21
21
gem 'rake'
22
22
gem 'sqlite3' , '~> 1.4'
23
- gem 'simplecov' , '~> 0.17.0' , require : false
23
+ gem 'simplecov' , "~> 0.22" , require : false
24
+ gem 'simplecov_json_formatter' , "~> 0.1.4"
24
25
end
25
26
26
27
gem 'rails' , '6.1.7.9'
Original file line number Diff line number Diff line change 1
1
require 'simplecov'
2
+ require 'simplecov_json_formatter'
3
+ require 'simplecov-html'
4
+
5
+ SimpleCov . formatters = [ SimpleCov ::Formatter ::JSONFormatter , SimpleCov ::Formatter ::HTMLFormatter ]
2
6
SimpleCov . start 'rails'
3
7
SimpleCov . add_filter [ 'app/services/forest_liana/ability/fetch.rb' , 'lib/forest_liana/version.rb' ]
4
8
9
+ SimpleCov . coverage_dir 'coverage'
10
+ SimpleCov . at_exit do
11
+ result = SimpleCov . result
12
+ result . format!
13
+ end
14
+
5
15
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
6
16
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
7
17
# The generated `.rspec` file contains `--require spec_helper` which will cause
You can’t perform that action at this time.
0 commit comments