Skip to content

Commit

Permalink
✅ Add simplecov check action
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Sep 24, 2024
1 parent 62ad485 commit 76fb981
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ jobs:
rubygems: 3.5.14
- name: Run test
run: bundle exec rake test

- uses: joshmfrankel/simplecov-check-action@main
with:
minimum_suite_coverage: 90
minimum_file_coverage: 40 # TODO: increase this after switching to SASL::AuthenticationExchange
github_token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion .simplecov
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
require "simplecov-json"

SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
])

SimpleCov.start do
command_name "Net::IMAP tests"
enable_coverage :branch
enable_coverage :branch
primary_coverage :branch
enable_coverage_for_eval

Expand Down
1 change: 1 addition & 0 deletions test/lib/helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "simplecov"
require "simplecov-json"
require "test/unit"
require "core_assertions"

Expand Down

0 comments on commit 76fb981

Please sign in to comment.