Merge pull request #2561 from spotify/orkohunter/codecov-flags

This commit is contained in:
Himanshu Mishra
2020-09-23 10:18:54 +02:00
committed by GitHub
2 changed files with 13 additions and 0 deletions
+10
View File
@@ -6,3 +6,13 @@ coverage:
default:
threshold: 0% # Ref: https://docs.codecov.io/docs/codecovyml-reference#coveragestatus
target: auto
# Since Backstage is a mono repo, flags here help in getting the code coverage of individual packages.
# Documentation: https://docs.codecov.io/docs/flags
flags:
core:
paths:
- packages/core/
core-api:
paths:
- packages/core-api/
+3
View File
@@ -63,6 +63,9 @@ jobs:
run: |
yarn lerna -- run test -- --coverage
bash <(curl -s https://codecov.io/bash)
# Upload code coverage for some specific flags. Also see .codecov.yml
bash <(curl -s https://codecov.io/bash) -f packages/core/coverage/* -F core
bash <(curl -s https://codecov.io/bash) -f packages/core-api/coverage/* -F core-api
# Publishes current version of packages that are not already present in the registry
- name: publish