Skip to content

Commit 23f4110

Browse files
committed
[bugfix] We only need to persist the test result of the main branch for calculating Code Coverage
1 parent 862b5db commit 23f4110

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,11 @@ jobs:
540540
- store_test_results:
541541
path: ~/test-results
542542
- when:
543-
# NOTE(AR) only persist the workspace when it is `large` as we then reuse it for the `code-coverage` jobs
543+
# NOTE(AR) only persist the workspace when we are on the `main` branch, and it has a `large` compute, as we then reuse it for the `code-coverage` jobs
544544
condition:
545545
and:
546546
- equal: [ large, << parameters.compute_size >> ]
547+
- equal: [ main, << pipeline.git.branch >> ]
547548
steps:
548549
- persist_project:
549550
compute_size: << parameters.compute_size >>

0 commit comments

Comments
 (0)