Support glob/multiple Cobertura files (or action-side merge) in the file input
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
The issue names no repository files or tests. Start by locating the implementation of the required file input and the upload path, then determine how glob, list, or directory inputs and Cobertura merging should fit; done means matrix and monorepo reports can be uploaded without a separate merge step, or the aggregation behavior is documented.
Written by the indexing model from the issue text.
Description
Summary
The file input accepts a single Cobertura XML report. Projects with a test matrix or monorepo layout produce many per-project Cobertura files, so they must be merged into one file before this action can consume them. It would help if the action accepted multiple files / a glob / a directory and merged them itself.
Current behavior
fileis a single, required path to one Cobertura XML report.- There is no glob, multi-file, or directory input.
Desired behavior
Accept any one of:
- glob patterns in
file(e.g.**/*.cobertura.xml), or - a
filesinput taking a newline- or comma-separated list, or - a directory + pattern,
and merge the matched reports (action-side or server-side) before upload. For comparison, codecov/codecov-action accepts multiple files / directory search, so matrix and monorepo setups upload without a separate merge step.
Use case
We're migrating a public .NET OSS monorepo (ChilliCream/graphql-platform) from Codecov to GitHub Code Quality. CI runs a 125-project test matrix, and each job emits its own *.cobertura.xml artifact. Codecov merged them server-side. With this action we now add an explicit merge step first:
- run: dotnet tool install --global dotnet-coverage
- run: >
dotnet-coverage merge
--output merged.cobertura.xml
--output-format cobertura
"**/*.cobertura.xml"
- uses: actions/upload-code-coverage@v1
with:
file: merged.cobertura.xml
language: "C#"
label: code-coverage/dotnet
This works, but native multi-file/glob support (or an action-side merge) would remove the extra tooling and step for the common matrix/monorepo case.
Question
If multiple uploads with distinct labels are made (e.g. one per matrix job), are they aggregated into a single PR coverage total, or treated independently? If aggregation already works that way, documenting it would cover much of this need on its own.
Drafted by Claude (Anthropic AI assistant).
- Dominant language
- Python
- Stars
- 99
- Forks
- 20
- Avg merge
- 12h 23m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from actions/upload-code-coverage
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
actions/upload-code-coverage#26 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
actions/upload-code-coverage#20 · 2 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
actions/upload-code-coverage#16 · 3 comments · 5 reactions ·
-
Push to default branch attributes coverage to an unrelated fork PR with a same-named head branch Open
Difficulty 3/5 1-2 days Newbie friendliness 74/100
actions/upload-code-coverage#14 · 2 comments · 1 reaction ·
All issues in actions/upload-code-coverage
Similar issues
-
agent-ready documentation needs-triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
instance instance add
Difficulty 1/5 Under an hour Newbie friendliness 72/100
searxng/searx-instances#939 · 1 comment ·
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100