Description
Describe the bug
The new uploader fails to find coverage reports from Xcode.
To Reproduce
git clone https://github.com/chris-araman/CombineCloudKit.git
cd CombineCloudKit
swift package generate-xcodeproj
xcodebuild test -enableCodeCoverage YES -scheme CombineCloudKit-Package
bin/codecov -n -Q github-action-2.0.1 -Z
Expected behavior
The coverage report is found and uploaded successfully.
Additional context
codecov-action@v2
uses the new uploader. codecov-action@v1
used the old bash uploader. The new uploader fails to find coverage reports from Xcode when the bash uploader found them successfully. I encountered this issue when attempting to migrate from codecov-action@v1
to @v2
.
It seems this functionality was implemented in the bash uploader here:
https://github.com/codecov/codecov-bash/blob/ae76691c8554334bc1ddc355f6667fd36d6890f5/codecov#L1148
There are notes in #15 about wanting to keep this project a "pure uploader". I think separating the concerns of the uploader from the concerns of something processing reports is admirable. However, I think this sort of boilerplate logic is useful to users of the uploader. Perhaps it can be ported to a more coverage-friendly environment (Node.js, Typescript) alongside the uploader functionality, even if it's in a separate module?
This issue is preventing me from migrating to the new uploader via codecov-action@v2
.