From 4f67ee397a3f5836ba3f78de65e67a73d4178710 Mon Sep 17 00:00:00 2001 From: Lorenzo Gabriele Date: Mon, 25 Mar 2024 17:53:59 +0100 Subject: [PATCH] Revert "fix: Remove coverage for now" (#498) * Revert "fix: Remove coverage for now" This reverts commit 85fe6a1ae6e4022188e2a8d05600c5ed5c1c7642. * fix: Use local reporter to sent report to Codacy --- .circleci/config.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5918afc4..35ec6321 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -227,12 +227,15 @@ workflows: - run: name: Aggregate coverage reports command: sbt coverageAggregate - # - run: - # name: Send coverage report to Codacy - # # Specify only scala coverage reports, because coverage reporter is detecting coverage reports - # # for other languages that are not valid and are used on tests - # command: | - # bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Scala -r "**/cobertura*.xml" + - run: + name: Send coverage report to Codacy + # We send the report using the current revision of the reporter. This allows hotfixes to be deployed + # when the coverage-reporter is not working in production + # + # Specify only scala coverage reports, because coverage reporter is detecting coverage reports + # for other languages that are not valid and are used on tests + command: | + sbt "run report -l Scala -r \"**/cobertura*.xml\"" - run: name: Clean coverage.sbt from cache command: rm coverage.sbt