diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 83b6060..6585980 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,6 +20,16 @@ jobs:
- '3.3.7'
- '3.4.2'
- 'head'
+ finish:
+ needs: test
+ if: ${{ always() }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Coveralls Finished
+ uses: coverallsapp/github-action@v2
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ parallel-finished: true
steps:
- uses: actions/checkout@v4
@@ -36,3 +46,6 @@ jobs:
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
+ path-to-lcov: ./coverage/lcov.info
+ flag-name: ruby-${{ matrix.ruby-version }}
+ parallel: true
diff --git a/Gemfile b/Gemfile
index 102c555..daadf0c 100644
--- a/Gemfile
+++ b/Gemfile
@@ -5,6 +5,7 @@ source 'https://rubygems.org'
gemspec
gem 'bundler', '>= 1.9'
gem 'coveralls_reborn', require: false
+gem 'simplecov-lcov', require: false
gem 'rake', '>= 10.0'
gem 'rake-hooks'
gem 'rspec'
diff --git a/README.md b/README.md
index 8cd14dd..41f379b 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
# wareki - ruby 和暦ライブラリ
[
](https://badge.fury.io/rb/wareki)
-[
](https://travis-ci.org/sugi/wareki)
-[
](https://coveralls.io/github/sugi/wareki?branch=master)
+[
](https://github.com/sugi/wareki/actions/workflows/ci.yml)
+[
](https://coveralls.io/github/sugi/wareki?branch=master)
[
](https://codeclimate.com/github/sugi/wareki/maintainability)
[](https://www.codacy.com/app/sugi/wareki?utm_source=github.com&utm_medium=referral&utm_content=sugi/wareki&utm_campaign=Badge_Grade)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 579643e..a43441a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -3,10 +3,16 @@
unless defined? JRUBY_VERSION
require 'simplecov'
require 'coveralls'
-
+ require 'simplecov-lcov'
+
+ SimpleCov::Formatter::LcovFormatter.config do |c|
+ c.report_with_single_file = true
+ c.single_report_path = 'coverage/lcov.info'
+ end
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
- Coveralls::SimpleCov::Formatter
+ Coveralls::SimpleCov::Formatter,
+ SimpleCov::Formatter::LcovFormatter
])
SimpleCov.start do
add_filter 'build-util/'