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 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
Original file line number Diff line number Diff line change 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
47Manage GitHub via Ruboty.
58This 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|
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'
3334end
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33require '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
615require 'ruboty/github'
716require 'webmock/rspec'
You can’t perform that action at this time.
0 commit comments