Skip to content

Commit

Permalink
Merge pull request #3906 from 3scale/codecov
Browse files Browse the repository at this point in the history
Update codecov uploader
  • Loading branch information
mayorova authored Oct 21, 2024
2 parents 11f3b76 + b127450 commit ad77481
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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: .
Expand Down Expand Up @@ -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 ############################################

Expand Down Expand Up @@ -568,8 +565,8 @@ jobs:
- *attach-to-workspace
- run:
name: Jest specs
command: yarn jest --maxWorkers=3
- *upload-coverage
command: yarn jest --maxWorkers=3 --coverage
- codecov/upload
- notify_failure

unit:
Expand Down

0 comments on commit ad77481

Please sign in to comment.