Skip to content

Commit

Permalink
ci: Add -Z flag to codecov cli
Browse files Browse the repository at this point in the history
Signed-off-by: Mihail Mihov <[email protected]>
  • Loading branch information
mishomihov00 committed Nov 26, 2024
1 parent 66de270 commit 37377d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/codecov-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov

if [ -d "coverage" ]; then
echo "Uploading coverage report for root"
./codecov --token "${CODECOV_TOKEN}" --fail-on-error
./codecov --token "${CODECOV_TOKEN}" --fail-on-error -Z
else
echo "No coverage report found for root"
fi

for dir in packages/*; do
if [ -d "${dir}/coverage" ]; then
echo "Uploading coverage report for ${dir}"
./codecov --dir "${dir}" --flags "$(basename "${dir}")" --token "${CODECOV_TOKEN}" --fail-on-error
./codecov --dir "${dir}" --flags "$(basename "${dir}")" --token "${CODECOV_TOKEN}" --fail-on-error -Z
else
echo "No coverage report found for ${dir}"
fi
Expand Down

0 comments on commit 37377d9

Please sign in to comment.