Skip to content

Commit cd19887

Browse files
committed
[bugfix] We only need to persist the test result of the main branch for calculating Code Coverage
1 parent 73ece6d commit cd19887

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
@@ -537,10 +537,11 @@ jobs:
537537
- store_test_results:
538538
path: ~/test-results
539539
- when:
540-
# NOTE(AR) only persist the workspace when it is `large` as we then reuse it for the `code-coverage` and `sonar-analysis` jobs
540+
# 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` and `sonar-analysis` jobs
541541
condition:
542542
and:
543543
- equal: [ large, << parameters.compute_size >> ]
544+
- equal: [ main, << pipeline.git.branch >> ]
544545
steps:
545546
- persist_project:
546547
compute_size: << parameters.compute_size >>

0 commit comments

Comments
 (0)