Skip to content

Commit 3067ad7

Browse files
authored
Merge pull request #214 from increments/introduce-qlty
Introduce qlty
2 parents 69875dd + a9f14aa commit 3067ad7

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ jobs:
3232
bundler-cache: true
3333
- name: Test
3434
run: bundle exec rake
35+
36+
qlty:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
40+
- uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0
41+
with:
42+
ruby-version: '3.2'
43+
bundler-cache: true
44+
- name: Test
45+
run: bundle exec rake
46+
- uses: qltysh/qlty-action/coverage@a19242102d17e497f437d7466aa01b528537e899 # v2.2.0
47+
with:
48+
token: ${{secrets.QLTY_COVERAGE_TOKEN}}
49+
files: ./coverage/coverage.json

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ gem "rake"
1010
gem "rspec", "~> 3.1"
1111
gem "rubocop", "~> 1.76.0"
1212
gem "simplecov", "!= 0.18.0", "!= 0.18.1", "!= 0.18.2", "!= 0.18.3", "!= 0.18.4", "!= 0.18.5", "!= 0.19.0", "!= 0.19.1"
13+
gem "simplecov_json_formatter"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![Gem Version](https://badge.fury.io/rb/qiita-markdown.svg)](https://badge.fury.io/rb/qiita-markdown)
44
[![Build Status](https://travis-ci.org/increments/qiita-markdown.svg)](https://travis-ci.org/increments/qiita-markdown)
5+
[![Maintainability](https://qlty.sh/gh/increments/projects/qiita-markdown/maintainability.svg)](https://qlty.sh/gh/increments/projects/qiita-markdown)
6+
[![Code Coverage](https://qlty.sh/gh/increments/projects/qiita-markdown/coverage.svg)](https://qlty.sh/gh/increments/projects/qiita-markdown)
57

68
Qiita-specified markdown processor.
79

spec/spec_helper.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
if ENV["CI"]
22
require "simplecov"
3-
SimpleCov.start
3+
require "simplecov_json_formatter"
4+
SimpleCov.start do
5+
SimpleCov.formatters = [
6+
SimpleCov::Formatter::JSONFormatter,
7+
SimpleCov::Formatter::HTMLFormatter,
8+
]
9+
10+
add_filter "/spec/"
11+
end
412
end
513

614
require "qiita-markdown"

0 commit comments

Comments
 (0)