Skip to content

Commit 705e76b

Browse files
authored
fix(codecov): update codecov-upload.yml action to upload report with correct path (#34814)
### Reason for this change Fixing the upload path for codecov-upload.ymp based workflow ### Description of changes Last successful run of CodeCov report was https://github.com/aws/aws-cdk/actions/runs/15032809949/job/42248762782 which uploaded to certain path configured in codecov Uploads after that have been failing silently due to path match failures in codecov Creating the path `./coverage/packages/aws-cdk-lib/core/coverage` and uploading to it should allow code coverage to be populated again ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 2718bc4 commit 705e76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/codecov-upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
uses: actions/download-artifact@v4
2525
with:
2626
name: coverage-artifacts
27-
path: ./coverage
27+
path: ./coverage/packages/aws-cdk-lib/core/coverage
2828
github-token: ${{ secrets.GITHUB_TOKEN }}
2929
repository: ${{ github.repository }}
3030
run-id: ${{ github.event.workflow_run.id }}
3131

3232
- name: Upload to Codecov
3333
uses: codecov/codecov-action@v5
3434
with:
35-
files: ./coverage/packages/aws-cdk-lib/coverage/cobertura-coverage.xml
35+
files: ./coverage/packages/aws-cdk-lib/core/coverage/cobertura-coverage.xml
3636
fail_ci_if_error: true
3737
flags: suite.unit
3838
use_oidc: true

0 commit comments

Comments
 (0)