Skip to content

Commit

Permalink
Add SimpleCov+ Action
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Apr 19, 2023
1 parent 6787849 commit 5130199
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ jobs:
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake
- name: SimpleCov+ Action
uses: joshmfrankel/[email protected]
with:
check_job_name: "Coverage"
github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ gemspec

gem "debug"
gem "rake"
gem "minitest"
gem "minitest"
gem "simplecov"
gem "simplecov-json"
13 changes: 13 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ GEM
debug (1.7.2)
irb (>= 1.5.0)
reline (>= 0.3.1)
docile (1.4.0)
io-console (0.6.0)
irb (1.6.4)
reline (>= 0.3.0)
json (2.6.3)
minitest (5.18.0)
rake (13.0.6)
reline (0.3.3)
io-console (~> 0.5)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-json (0.2.3)
json
simplecov
simplecov_json_formatter (0.1.4)

PLATFORMS
arm64-darwin-22
Expand All @@ -26,6 +37,8 @@ DEPENDENCIES
debug
minitest
rake
simplecov
simplecov-json

BUNDLED WITH
2.4.8
10 changes: 10 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
require "chat_notifier"
require "debug"

if ENV["CI"]
require "simplecov"
require "simplecov-json"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter
])
SimpleCov.start
end

require "minitest/autorun"

def mimic(**kwargs)
Expand Down

0 comments on commit 5130199

Please sign in to comment.