mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 00:06:22 -06:00
Move coverage reports to root directory for Codecov upload
This commit updates the `test.yml` GitHub workflow to correctly process and locate code coverage reports before uploading them to Codecov. The previous steps extracted coverage reports from `.tar` and `.zip` archives into subdirectories within the `coverage-reports` directory. This commit adds a step to move all extracted `.xml` files from these subdirectories into the root of the `coverage-reports` directory. Additionally, it cleans up the original `.tar` and `.zip` archives after extraction to save space. This ensures that the Codecov action can find all the necessary XML reports in the expected location.
This commit is contained in:
parent
954f39d432
commit
11d9537b05
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -301,6 +301,8 @@ jobs:
|
||||
run: |
|
||||
find coverage-reports -type f -name "*.tar" -exec tar -xf {} -C coverage-reports \;
|
||||
find coverage-reports -type f -name "*.zip" -exec unzip -o {} -d coverage-reports \;
|
||||
find coverage-reports -name "*.xml" -type f -exec mv {} coverage-reports/ \;
|
||||
find coverage-reports -type f \( -name "*.tar" -o -name "*.zip" \) -delete
|
||||
find coverage-reports -name "*.xml" -type f
|
||||
|
||||
- name: Upload to codecov.io
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user