Skip to content

Commit 488c3c8

Browse files
committed
Migrate from codeclimate to qlty
1 parent ab95772 commit 488c3c8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ jobs:
2222
with:
2323
ruby-version: '3.2'
2424
bundler-cache: true
25+
- name: Test
26+
run: bundle exec rake
2527
- name: Test & publish code coverage
26-
if: "${{ env.CC_TEST_REPORTER_ID != '' }}"
27-
uses: paambaati/codeclimate-action@7bcf9e73c0ee77d178e72c0ec69f1a99c1afc1f3 # v2.7.5
28-
env:
29-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
30-
GIT_BRANCH: ${{ steps.branch-name.outputs.current_branch }}
31-
GIT_COMMIT_SHA: ${{ github.sha }}
28+
uses: qltysh/qlty-action/coverage@b9133a486505563742d768da29f7951271678c87 # v1.1.1
3229
with:
33-
coverageCommand: bundle exec rake
30+
oidc: true
31+
files: coverage/coverage.json
3432

3533
test:
3634
strategy:

spec/spec_helper.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
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
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/"
810
end
911
end
1012

0 commit comments

Comments
 (0)