Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,18 @@ jobs:
bundler-cache: true
- name: Test
run: bundle exec rake

qlty:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0
with:
ruby-version: '3.2'
bundler-cache: true
- name: Test
run: bundle exec rake
- uses: qltysh/qlty-action/coverage@a19242102d17e497f437d7466aa01b528537e899 # v2.2.0
with:
token: ${{secrets.QLTY_COVERAGE_TOKEN}}
files: ./coverage/coverage.json
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ gem "rake"
gem "rspec", "~> 3.1"
gem "rubocop", "~> 1.76.0"
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"
gem "simplecov_json_formatter"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

Qiita-specified markdown processor.

Expand Down
9 changes: 8 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
if ENV["CI"]
require "simplecov"
SimpleCov.start
require "simplecov_json_formatter"
SimpleCov.start do
formatter SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::JSONFormatter,
SimpleCov::Formatter::HTMLFormatter,
])
add_filter "/spec/"
end
end

require "qiita-markdown"
Expand Down
Loading