From 5ee2737fe46c93652eaedd4509a84a09d592b437 Mon Sep 17 00:00:00 2001 From: Daria Mayorova Date: Mon, 7 Oct 2024 10:35:31 +0200 Subject: [PATCH 1/2] Update codecov uploader --- .circleci/config.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e9fbac928b..3bc58c08e3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,12 +1,9 @@ version: 2.1 +orbs: + codecov: codecov/codecov@3.3.0 ##################################### YAML ANCHORS ############################################ -upload-coverage: &upload-coverage - run: - name: Upload test coverage to Codecov - command: bash <(curl --retry 10 --retry-delay 5 --retry-max-time 60 -s https://codecov.io/bash) -Z || echo "Codecov is not working again..." - persist-vendored-dependencies-to-workspace: &persist-vendored-dependencies-to-workspace persist_to_workspace: root: . @@ -357,7 +354,7 @@ commands: # reusable commands with parameters - *store-junit-test-results - *store-test-artifacts - *store-log-artifacts - - *upload-coverage + - codecov/upload ##################################### CIRCLECI EXECUTORS ############################################ @@ -569,7 +566,7 @@ jobs: - run: name: Jest specs command: yarn jest --maxWorkers=3 - - *upload-coverage + - codecov/upload - notify_failure unit: From b1274509b6e4457805165c5b2ff71de98c2b853e Mon Sep 17 00:00:00 2001 From: Daria Mayorova Date: Tue, 15 Oct 2024 13:44:53 +0200 Subject: [PATCH 2/2] Add coverage for jest tests --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bc58c08e3..bf77e2916c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -565,7 +565,7 @@ jobs: - *attach-to-workspace - run: name: Jest specs - command: yarn jest --maxWorkers=3 + command: yarn jest --maxWorkers=3 --coverage - codecov/upload - notify_failure