Skip to content

Commit 7480444

Browse files
authored
Merge pull request #35 from increments/introduce-qlty
Introduce qlty
2 parents 41aa0d3 + fefed12 commit 7480444

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

.github/workflows/test.yml

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

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Ruboty::Github
2-
[![Gem Version](https://badge.fury.io/rb/ruboty-qiita-github.svg)](https://badge.fury.io/rb/ruboty-qiita-github) [![Test](https://github.com/increments/ruboty-qiita-github/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/increments/ruboty-qiita-github/actions/workflows/test.yml)
2+
[![Gem Version](https://badge.fury.io/rb/ruboty-qiita-github.svg)](https://badge.fury.io/rb/ruboty-qiita-github)
3+
[![Test](https://github.com/increments/ruboty-qiita-github/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/increments/ruboty-qiita-github/actions/workflows/test.yml)
4+
[![Maintainability](https://qlty.sh/gh/increments/projects/ruboty-qiita-github/maintainability.svg)](https://qlty.sh/gh/increments/projects/ruboty-qiita-github)
5+
[![Code Coverage](https://qlty.sh/gh/increments/projects/ruboty-qiita-github/coverage.svg)](https://qlty.sh/gh/increments/projects/ruboty-qiita-github)
36

47
Manage GitHub via Ruboty.
58
This gem adds `deploy pull request` command to original ruboty-github plugin.

ruboty-github.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
2828
spec.add_development_dependency 'rubocop-rake'
2929
spec.add_development_dependency 'rubocop-rspec'
3030
spec.add_development_dependency 'simplecov'
31+
spec.add_development_dependency 'simplecov_json_formatter'
3132
spec.add_development_dependency 'webmock'
3233
spec.metadata['rubygems_mfa_required'] = 'true'
3334
end

spec/spec_helper.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# frozen_string_literal: true
22

33
require 'simplecov'
4-
SimpleCov.start
4+
require 'simplecov_json_formatter'
5+
6+
SimpleCov.start do
7+
SimpleCov.formatters = [
8+
SimpleCov::Formatter::JSONFormatter,
9+
SimpleCov::Formatter::HTMLFormatter
10+
]
11+
12+
add_filter '/spec/'
13+
end
514

615
require 'ruboty/github'
716
require 'webmock/rspec'

0 commit comments

Comments
 (0)