Skip to content

Commit 3e4ded7

Browse files
committed
Switch to qlty
1 parent a9dc7c6 commit 3e4ded7

File tree

3 files changed

+47
-7
lines changed

3 files changed

+47
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ jobs:
5656
ruby-version: ${{ matrix.ruby }}
5757
bundler-cache: true
5858

59-
- name: RSpec & publish code coverage
60-
uses: paambaati/codeclimate-action@v9.0.0
61-
env:
62-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
59+
- name: Run RSpec
60+
run: bin/rspec
61+
62+
- name: Publish code coverage
63+
uses: qltysh/qlty-action/coverage@v1
6364
with:
64-
coverageCommand: bin/rspec
65+
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
66+
files: coverage/coverage.json

.qlty/qlty.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
config_version = "0"
2+
3+
[[source]]
4+
name = "default"
5+
default = true
6+
7+
[[plugin]]
8+
name = "actionlint"
9+
10+
[[plugin]]
11+
name = "checkov"
12+
version = "3.2.49"
13+
14+
[[plugin]]
15+
name = "markdownlint"
16+
version = "0.31.1"
17+
18+
[[plugin]]
19+
name = "osv-scanner"
20+
21+
[[plugin]]
22+
name = "prettier"
23+
version = "2.8.4"
24+
25+
[[plugin]]
26+
name = "ripgrep"
27+
28+
[[plugin]]
29+
name = "trivy"
30+
31+
[[plugin]]
32+
name = "trufflehog"
33+
34+
[[plugin]]
35+
name = "yamllint"

spec/spec_helper.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# frozen_string_literal: true
22

3-
require 'yaml'
4-
require 'rails/all'
53
require 'simplecov'
4+
require 'simplecov_json_formatter'
65

76
# Start SimpleCov
87
SimpleCov.start do
8+
formatter SimpleCov::Formatter::JSONFormatter
99
add_filter 'spec/'
1010
end
1111

12+
require 'yaml'
13+
require 'rails/all'
14+
1215
# Configure RSpec
1316
RSpec.configure do |config|
1417
config.color = true

0 commit comments

Comments
 (0)