-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
160 lines (157 loc) · 5.93 KB
/
action.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: 'codecov-action'
description: 'https://github.com/codecov/codecov-action/blob/main/action.yml'
inputs:
token:
description: 'Repository upload token - get it from codecov.io. Required only for private repositories'
required: false
file:
description: 'Path to coverage file to upload'
required: false
files:
description: 'Comma-separated list of files to upload'
required: false
directory:
description: 'Directory to search for coverage reports.'
required: false
flags:
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
required: false
full_report:
description: Specify the path of a full Codecov report to re-upload
required: false
commit_parent:
description: 'The commit SHA of the parent for which you are uploading coverage. If not present, the parent will be determined using the API of your repository provider. When using the repository providers API, the parent is determined via finding the closest ancestor to the commit.'
required: false
dry_run:
description: "Don't upload files to Codecov"
required: false
env_vars:
description: 'Environment variables to tag the upload with (e.g. PYTHON | OS,PYTHON)'
required: false
fail_ci_if_error:
description: 'Specify whether or not CI build should fail if Codecov runs into an error during upload'
required: false
functionalities:
description: 'Comma-separated list, see the README for options and their usage. Options include `network`, `fixes`, `search`.'
required: false
gcov:
description: 'Run with gcov support'
required: false
gcov_args:
description: 'Extra arguments to pass to gcov'
required: false
gcov_executable:
description: 'gcov executable to run. Defaults to gcov'
required: false
gcov_ignore:
description: 'Paths to ignore during gcov gathering'
required: false
gcov_include:
description: 'Paths to include during gcov gathering'
required: false
move_coverage_to_trash:
description: 'Move discovered coverage reports to the trash'
required: false
name:
description: 'User defined upload name. Visible in Codecov UI'
required: false
network_filter:
description: 'Specify a filter on the files listed in the network section of the Codecov report. Useful for upload-specific path fixing'
required: false
network_prefix:
description: 'Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing'
required: false
os:
description: 'Override the assumed OS. Options are aarch64 | alpine | linux | macos | windows.'
required: false
override_branch:
description: 'Specify the branch name'
required: false
override_build:
description: 'Specify the build number'
required: false
override_commit:
description: 'Specify the commit SHA'
required: false
override_pr:
description: 'Specify the pull request number'
required: false
override_tag:
description: 'Specify the git tag'
required: false
root_dir:
description: 'Used when not in git/hg project to identify project root directory'
required: false
slug:
description: 'Specify the slug manually (Enterprise use)'
required: false
swift:
description: 'Run with swift coverage support'
required: false
swift_project:
description: 'Specify the swift project to speed up coverage conversion'
required: false
upstream_proxy:
description: 'The upstream http proxy server to connect through'
required: false
url:
description: 'Change the upload host (Enterprise use)'
required: false
verbose:
description: 'Specify whether the Codecov output should be verbose'
required: false
version:
description: 'Specify which version of the Codecov Uploader should be used. Defaults to `latest`'
required: false
xcode:
description: 'Run with xcode support'
required: false
xcode_archive_path:
description: 'Specify the xcode archive path. Likely specified as the -resultBundlePath and should end in .xcresult'
required: false
xtra_args:
description: 'Add additional uploader args that may be missing in the Action'
required: false
runs:
using: composite
steps:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ inputs.token }}
file: ${{ inputs.file }}
files: ${{ inputs.files }}
directory: ${{ inputs.directory }}
flags: ${{ inputs.flags }}
full_report: ${{ inputs.full_report }}
commit_parent: ${{ inputs.commit_parent }}
dry_run: ${{ inputs.dry_run }}
env_vars: ${{ inputs.env_vars }}
fail_ci_if_error: ${{ inputs.fail_ci_if_error }}
functionalities: ${{ inputs.functionalities }}
gcov: ${{ inputs.gcov }}
gcov_args: ${{ inputs.gcov_args }}
gcov_executable: ${{ inputs.gcov_executable }}
gcov_ignore: ${{ inputs.gcov_ignore }}
gcov_include: ${{ inputs.gcov_include }}
move_coverage_to_trash: ${{ inputs.move_coverage_to_trash }}
name: ${{ inputs.name }}
network_filter: ${{ inputs.network_filter }}
network_prefix: ${{ inputs.network_prefix }}
os: ${{ inputs.os }}
override_branch: ${{ inputs.override_branch }}
override_build: ${{ inputs.override_build }}
override_commit: ${{ inputs.override_commit }}
override_pr: ${{ inputs.override_pr }}
override_tag: ${{ inputs.override_tag }}
root_dir: ${{ inputs.root_dir }}
slug: ${{ inputs.slug }}
swift: ${{ inputs.swift }}
swift_project: ${{ inputs.swift_project }}
upstream_proxy: ${{ inputs.upstream_proxy }}
url: ${{ inputs.url }}
verbose: ${{ inputs.verbose }}
version: ${{ inputs.version }}
xcode: ${{ inputs.xcode }}
xcode_archive_path: ${{ inputs.xcode_archive_path }}
xtra_args: ${{ inputs.xtra_args }}