-
Notifications
You must be signed in to change notification settings - Fork 4.5k
40 lines (35 loc) · 1019 Bytes
/
codecov-upload.yml
File metadata and controls
40 lines (35 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Codecov Upload
on:
workflow_run:
workflows: ["Codecov Collect"]
types:
- completed
permissions:
contents: write
id-token: write
actions: read
jobs:
upload:
name: Upload to Codecov
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Download Artifacts
uses: actions/download-artifact@v8
with:
name: coverage-artifacts
path: ./packages/aws-cdk-lib/core/coverage
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
run-id: ${{ github.event.workflow_run.id }}
- name: Upload to Codecov
uses: codecov/codecov-action@v6
with:
files: ./packages/aws-cdk-lib/core/coverage/cobertura-coverage.xml
fail_ci_if_error: true
flags: suite.unit
use_oidc: true