diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 358f20170f..05f99dfa65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -358,3 +358,5 @@ jobs: resultPath: lib/coverage_results/.last_run.json failedThreshold: 93.5 failedThresholdBranch: 50 + - name: Clear all Coverage Results + run: bundle exec rake coverage:clear diff --git a/lib/tasks/coverage_report.rake b/lib/tasks/coverage_report.rake index 79e1fdd06a..373ccf443f 100644 --- a/lib/tasks/coverage_report.rake +++ b/lib/tasks/coverage_report.rake @@ -11,7 +11,7 @@ if ENV['CI'] SimpleCov.coverage_dir('coverage_results') - SimpleCov.collate(Dir['*/coverage_*/.resultset.json']) do + SimpleCov.collate(Dir['*/coverage_*/.resultset-*.json']) do formatter SimpleCov::Formatter::HTMLFormatter refuse_coverage_drop end