Skip to content

Commit 450c7d7

Browse files
committed
CodeClimate -> Qlty migration
The useful (to this project) bits of CodeClimate were moved to a new product spin-off called Qlty (Quality). This should be the minimal amount required to get things up and running over there.
1 parent 10b2511 commit 450c7d7

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,14 @@ jobs:
3636
with:
3737
ruby-version: ${{ matrix.ruby-version }}
3838
bundler-cache: true
39-
- uses: amancevice/setup-code-climate@v2
40-
name: CodeClimate setup
41-
if: ${{ matrix.coverage == 'true' }}
42-
with:
43-
cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}
44-
- name: CodeClimate before-build
45-
run: cc-test-reporter before-build
46-
if: ${{ matrix.coverage == 'true' }}
47-
continue-on-error: true
4839
- name: Run tests
4940
env:
5041
COVERAGE: ${{ matrix.coverage }}
5142
run: bundle exec rake spec
52-
- name: CodeClimate after-build
53-
run: cc-test-reporter after-build
43+
- uses: qltysh/qlty-action/coverage@v2
44+
with:
45+
token: {{secrets.QLTY_COVERAGE_TOKEN}}
46+
files: coverage/.resultset.json
5447
if: ${{ matrix.coverage == 'true' }}
5548
continue-on-error: true
5649
Standard:
@@ -74,6 +67,6 @@ jobs:
7467
ruby-version: '3.3'
7568
bundler-cache: true
7669
- name: Check gem RBI files
77-
run: bin/tapioca gems --verify
70+
run: bin/tapioca gem --verify
7871
- name: Run Sorbet
7972
run: bundle exec rake sorbet

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ gem "tapioca"
1313
group :test do
1414
gem "rspec", "~> 3.0"
1515
gem "simplecov", "~> 0.18"
16+
gem "simplecov_json_formatter", "~> 0.1.4"
1617
end

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ GEM
124124
PLATFORMS
125125
arm64-darwin-21
126126
arm64-darwin-23
127+
arm64-darwin-24
127128
linux
128129
x86_64-darwin-19
129130
x86_64-linux
@@ -135,6 +136,7 @@ DEPENDENCIES
135136
repeatable!
136137
rspec (~> 3.0)
137138
simplecov (~> 0.18)
139+
simplecov_json_formatter (~> 0.1.4)
138140
sorbet-static-and-runtime
139141
standard (~> 1.0)
140142
tapioca

spec/spec_helper.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
if ENV["COVERAGE"] == "true"
44
require "simplecov"
5-
SimpleCov.start
5+
require "simplecov_json_formatter"
6+
7+
SimpleCov.start do
8+
SimpleCov.formatter SimpleCov::Formatter::JSONFormatter
9+
SimpleCov.add_filter "/spec/"
10+
end
611
end
712

813
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

0 commit comments

Comments
 (0)