File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,12 @@ jobs:
23
23
ruby-version : ' 3.2'
24
24
bundler-cache : true
25
25
- name : Test & publish code coverage
26
- if : " ${{ env.CC_TEST_REPORTER_ID != '' }}"
27
- uses : paambaati/codeclimate-action@7bcf9e73c0ee77d178e72c0ec69f1a99c1afc1f3 # v2.7.5
26
+ uses : qltysh/qlty-action/coverage@b9133a486505563742d768da29f7951271678c87 # v1.1.1
28
27
env :
29
- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
30
28
GIT_BRANCH : ${{ steps.branch-name.outputs.current_branch }}
31
29
GIT_COMMIT_SHA : ${{ github.sha }}
32
30
with :
33
- coverageCommand : bundle exec rake
31
+ command : bundle exec rake
34
32
35
33
test :
36
34
strategy :
Original file line number Diff line number Diff line change 1
1
if ENV [ "CI" ]
2
- if ENV [ "GITHUB_ACTIONS" ]
3
- require "simplecov"
4
- SimpleCov . start
5
- else
6
- require "codeclimate-test-reporter"
7
- CodeClimate ::TestReporter . start
2
+ require 'simplecov'
3
+ require 'simplecov_json_formatter'
4
+ SimpleCov . start do
5
+ formatter SimpleCov ::Formatter ::MultiFormatter . new ( [
6
+ SimpleCov ::Formatter ::JSONFormatter ,
7
+ SimpleCov ::Formatter ::HTMLFormatter
8
+ ] )
9
+ add_filter '/spec/'
8
10
end
9
11
end
10
12
25
27
26
28
config . example_status_persistence_file_path = "spec/examples.txt"
27
29
end
30
+ require 'simplecov'
31
+ require 'simplecov_json_formatter'
32
+ SimpleCov . start do
33
+ formatter SimpleCov ::Formatter ::MultiFormatter . new ( [
34
+ SimpleCov ::Formatter ::JSONFormatter ,
35
+ SimpleCov ::Formatter ::HTMLFormatter
36
+ ] )
37
+ add_filter '/spec/'
38
+ end
You can’t perform that action at this time.
0 commit comments