File tree Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 35
35
ruby-version : " 3.2"
36
36
bundler-cache : true
37
37
- 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
Original file line number Diff line number Diff line change 1
1
# 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 )
3
6
4
7
Manage GitHub via Ruboty.
5
8
This gem adds ` deploy pull request ` command to original ruboty-github plugin.
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
28
28
spec . add_development_dependency 'rubocop-rake'
29
29
spec . add_development_dependency 'rubocop-rspec'
30
30
spec . add_development_dependency 'simplecov'
31
+ spec . add_development_dependency 'simplecov_json_formatter'
31
32
spec . add_development_dependency 'webmock'
32
33
spec . metadata [ 'rubygems_mfa_required' ] = 'true'
33
34
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
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
5
14
6
15
require 'ruboty/github'
7
16
require 'webmock/rspec'
You can’t perform that action at this time.
0 commit comments