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:
Patrick Honkonen 2025-10-30 09:26:00 -04:00
parent 954f39d432
commit 11d9537b05
No known key found for this signature in database
GPG Key ID: 27C65CF8B03CC9FB

View File

@ -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