Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed May 5, 2022
1 parent 4e02a7c commit c0ad3ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
pull_request:
branches: [master]


env:
FULL_COVERAGE_CHECK: true

jobs:
full-check:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions lib/ci_helper/commands/check_sidekiq_scheduler_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def with_database?
def config
@config ||= begin
path = options[:config_path]
# :nocov:
YAML.respond_to?(:unsafe_load_file) ? YAML.unsafe_load_file(path) : YAML.load_file(path)
# :nocov:
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

SimpleCov.start do
enable_coverage :branch
minimum_coverage line: 100, branch: 100 if ENV["FULL_COVERAGE_CHECK"] == "true"
minimum_coverage line: 100, branch: 100
add_filter "spec"
end

Expand Down

0 comments on commit c0ad3ee

Please sign in to comment.