Skip to content

Commit 954f39d

Browse files
committed
Extract coverage reports before uploading
This commit adds a new step to the `test.yml` GitHub Actions workflow to extract coverage reports from downloaded artifacts. Previously, the workflow would download coverage report artifacts but did not extract them before the upload step. This change adds a new step named "Extract coverage reports from archives" that finds all `.tar` and `.zip` files within the `coverage-reports/` directory and extracts their contents. This ensures that the individual XML coverage files are available for the subsequent "Upload to codecov.io" step.
1 parent 8b72b1e commit 954f39d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@ jobs:
297297
pattern: coverage-*
298298
path: coverage-reports/
299299

300+
- name: Extract coverage reports from archives
301+
run: |
302+
find coverage-reports -type f -name "*.tar" -exec tar -xf {} -C coverage-reports \;
303+
find coverage-reports -type f -name "*.zip" -exec unzip -o {} -d coverage-reports \;
304+
find coverage-reports -name "*.xml" -type f
305+
300306
- name: Upload to codecov.io
301307
id: upload-to-codecov
302308
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1

0 commit comments

Comments
 (0)