Skip to content

Commit 0612844

Browse files
committed
Switch to qlty
1 parent b1aa249 commit 0612844

File tree

4 files changed

+46
-7
lines changed

4 files changed

+46
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ jobs:
6565
ruby-version: ${{ matrix.ruby }}
6666
bundler-cache: true
6767

68-
- name: RSpec & publish code coverage
69-
uses: paambaati/codeclimate-action@v9.0.0
70-
env:
71-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
68+
- name: Run RSpec
69+
run: bin/rspec
70+
71+
- name: Publish code coverage
72+
uses: qltysh/qlty-action/coverage@v1
7273
with:
73-
coverageCommand: bin/rspec
74+
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
75+
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"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
[![GitHub license](https://img.shields.io/github/license/jbox-web/action_form.svg)](https://github.com/jbox-web/action_form/blob/master/LICENSE)
44
[![GitHub release](https://img.shields.io/github/release/jbox-web/action_form.svg)](https://github.com/jbox-web/action_form/releases/latest)
55
[![CI](https://github.com/jbox-web/action_form/workflows/CI/badge.svg)](https://github.com/jbox-web/action_form/actions)
6-
[![Code Climate](https://codeclimate.com/github/jbox-web/action_form/badges/gpa.svg)](https://codeclimate.com/github/jbox-web/action_form)
7-
[![Test Coverage](https://codeclimate.com/github/jbox-web/action_form/badges/coverage.svg)](https://codeclimate.com/github/jbox-web/action_form/coverage)
6+
[![Maintainability](https://qlty.sh/badges/f8ba0063-7024-4ed0-9d8e-6b754c2959c5/maintainability.svg)](https://qlty.sh/gh/jbox-web/projects/action_form)
7+
[![Code Coverage](https://qlty.sh/badges/f8ba0063-7024-4ed0-9d8e-6b754c2959c5/test_coverage.svg)](https://qlty.sh/gh/jbox-web/projects/action_form)
88

99
Set your models free from the `accepts_nested_attributes_for` helper. ActionForm provides an object-oriented approach to represent your forms by building a form object, rather than relying on Active Record internals for doing this. Form objects provide an API to describe the models involved in the form, their attributes and validations. A form object deals with create/update actions of nested objects in a more seamless way.
1010

spec/spec_helper.rb

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

33
require 'simplecov'
4+
require 'simplecov_json_formatter'
45

56
# Start SimpleCov
67
SimpleCov.start do
8+
formatter SimpleCov::Formatter::JSONFormatter
79
add_filter 'spec/'
810
end
911

0 commit comments

Comments
 (0)