Skip to content

Commit 0f1df90

Browse files
committed
Migrate from codeclimate to qlty
1 parent ab95772 commit 0f1df90

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ jobs:
2323
ruby-version: '3.2'
2424
bundler-cache: true
2525
- 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
2827
env:
29-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
3028
GIT_BRANCH: ${{ steps.branch-name.outputs.current_branch }}
3129
GIT_COMMIT_SHA: ${{ github.sha }}
3230
with:
33-
coverageCommand: bundle exec rake
31+
command: bundle exec rake
3432

3533
test:
3634
strategy:

spec/spec_helper.rb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
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
8-
end
2+
configure_simplecov
93
end
104

115
require "qiita-markdown"
@@ -25,3 +19,12 @@
2519

2620
config.example_status_persistence_file_path = "spec/examples.txt"
2721
end
22+
require 'simplecov'
23+
require 'simplecov_json_formatter'
24+
SimpleCov.start do
25+
formatter SimpleCov::Formatter::MultiFormatter.new([
26+
SimpleCov::Formatter::JSONFormatter,
27+
SimpleCov::Formatter::HTMLFormatter
28+
])
29+
add_filter '/spec/'
30+
end

0 commit comments

Comments
 (0)