From d41ea24b299db5e5b8a56f5d12537a18c64a3966 Mon Sep 17 00:00:00 2001 From: Hannah Ramadan Date: Thu, 15 Aug 2024 10:08:00 -0700 Subject: [PATCH] Clear coverage results post run --- .github/workflows/ci.yml | 2 ++ lib/tasks/coverage_report.rake | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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