Skip to content

Commit 5508d6c

Browse files
gustavoliraclaude
andauthored
fix(coverage): use directory instead of files glob for Codecov upload (#2964)
The codecov CLI does not expand ** globs in the --file argument, causing all uploads to find 0 coverage files. Switch to directory scoped to plugins/ to let the action search recursively while still excluding example apps (packages/app, packages/backend). Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9b22601 commit 5508d6c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ jobs:
132132
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
133133
with:
134134
flags: ${{ matrix.workspace }}
135-
files: workspaces/${{ matrix.workspace }}/plugins/**/coverage/lcov.info
136-
disable_search: true
135+
directory: ./workspaces/${{ matrix.workspace }}/plugins
137136
token: ${{ secrets.CODECOV_TOKEN }}
138137
fail_ci_if_error: false
139138

.github/workflows/coverage-baseline.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ jobs:
8484
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
8585
with:
8686
flags: ${{ matrix.workspace }}
87-
files: workspaces/${{ matrix.workspace }}/plugins/**/coverage/lcov.info
88-
disable_search: true
87+
directory: ./workspaces/${{ matrix.workspace }}/plugins
8988
token: ${{ secrets.CODECOV_TOKEN }}
9089
fail_ci_if_error: false

0 commit comments

Comments
 (0)