You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-12Lines changed: 21 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ steps:
35
35
- uses: actions/checkout@master
36
36
- uses: codecov/codecov-action@v3
37
37
with:
38
-
token: ${{ secrets.CODECOV_TOKEN }}# not required for public repos
38
+
token: ${{ secrets.CODECOV_TOKEN }}
39
39
files: ./coverage1.xml,./coverage2.xml # optional
40
40
flags: unittests # optional
41
41
name: codecov-umbrella # optional
@@ -50,35 +50,44 @@ Codecov's Action supports inputs from the user. These inputs, along with their d
50
50
51
51
| Input | Description | Usage |
52
52
| :---: | :---: | :---: |
53
-
| `token` | Used to authorize coverage report uploads | *Required for private repos* |
54
-
| `files` | Comma-separated paths to the coverage report(s). Negated paths are supported by starting with `!` | Optional
55
-
| `directory` | Directory to search for coverage reports. | Optional
56
-
| `dry_run` | Don't upload files to Codecov | Optional
57
-
| `flags` | Flag the upload to group coverage metrics (unittests, uitests, etc.). Multiple flags are separated by a comma (ui,chrome) | Optional
53
+
| `token` | Used to authorize coverage report uploads | *Required |
54
+
| `move_coverage_to_trash` | Move discovered coverage reports to the trash | Optional
58
55
| `commit_parent` | 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 provider's API, the parent is determined via finding the closest ancestor to the commit. | Optional
56
+
| `dry_run` | Don't upload files to Codecov | Optional
59
57
| `env_vars` | Environment variables to tag the upload with. Multiple env variables can be separated with commas (e.g. `OS,PYTHON`) | Optional
60
58
| `fail_ci_if_error` | Specify if CI pipeline should fail when Codecov runs into errors during upload. *Defaults to **false*** | Optional
59
+
| `files` | Comma-separated paths to the coverage report(s). Negated paths are supported by starting with `!` | Optional
60
+
| `flags` | Flag the upload to group coverage metrics (unittests, uitests, etc.). Multiple flags are separated by a comma (ui,chrome) | Optional
61
+
| `full_report` | Specify the path of a full Codecov report to re-upload | Optional
| `gcov_args` | Extra arguments to pass to gcov | Optional
65
68
| `gcov_ignore` | Paths to ignore during gcov gathering | Optional
66
69
| `gcov_include` | Paths to include during gcov gathering | Optional
67
-
| `move_coverage_to_trash` | Move discovered coverage reports to the trash | Optional
70
+
| `gcov_executable` | gcov executable to run. Defaults to gcov. | Optional
68
71
| `name` | Custom defined name for the upload | Optional
72
+
| `network_filter` | Specify a filter on the files listed in the network section of the Codecov report. Useful for upload-specific path fixing | Optional
73
+
| `network_prefix` | Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing | Optional
74
+
| `os` | Specify the OS (linux, macos, windows, alpine) | Optional
69
75
| `override_branch` | Specify the branch name | Optional
70
76
| `override_build` | Specify the build number | Optional
71
77
| `override_commit` | Specify the commit SHA | Optional
72
78
| `override_pr` | Specify the pull request number | Optional
73
79
| `override_tag` | Specify the git tag | Optional
74
80
| `root_dir` | Used when not in git/hg project to identify project root directory | Optional
81
+
| `directory` | Directory to search for coverage reports. | Optional
Copy file name to clipboardExpand all lines: action.yml
+31-7Lines changed: 31 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ inputs:
5
5
token:
6
6
description: 'Repository upload token - get it from codecov.io. Required only for private repositories'
7
7
required: false
8
+
file:
9
+
description: 'Path to coverage file to upload'
10
+
required: false
8
11
files:
9
12
description: 'Comma-separated list of files to upload'
10
13
required: false
@@ -14,6 +17,9 @@ inputs:
14
17
flags:
15
18
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
16
19
required: false
20
+
full_report:
21
+
description: Specify the path of a full Codecov report to re-upload
22
+
required: false
17
23
commit_parent:
18
24
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.'
19
25
required: false
@@ -26,18 +32,18 @@ inputs:
26
32
fail_ci_if_error:
27
33
description: 'Specify whether or not CI build should fail if Codecov runs into an error during upload'
28
34
required: false
29
-
file:
30
-
description: 'Path to coverage file to upload'
31
-
required: false
32
35
functionalities:
33
-
description: 'Comma-separated list, see the README for options and their usage'
36
+
description: 'Comma-separated list, see the README for options and their usage. Options include `network`, `fixes`, `search`.'
34
37
required: false
35
38
gcov:
36
39
description: 'Run with gcov support'
37
40
required: false
38
41
gcov_args:
39
42
description: 'Extra arguments to pass to gcov'
40
43
required: false
44
+
gcov_executable:
45
+
description: 'gcov executable to run. Defaults to gcov'
46
+
required: false
41
47
gcov_ignore:
42
48
description: 'Paths to ignore during gcov gathering'
43
49
required: false
@@ -50,6 +56,15 @@ inputs:
50
56
name:
51
57
description: 'User defined upload name. Visible in Codecov UI'
52
58
required: false
59
+
network_filter:
60
+
description: 'Specify a filter on the files listed in the network section of the Codecov report. Useful for upload-specific path fixing'
61
+
required: false
62
+
network_prefix:
63
+
description: 'Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing'
64
+
required: false
65
+
os:
66
+
description: 'Override the assumed OS. Options are aarch64 | alpine | linux | macos | windows.'
67
+
required: false
53
68
override_branch:
54
69
description: 'Specify the branch name'
55
70
required: false
@@ -65,15 +80,21 @@ inputs:
65
80
override_tag:
66
81
description: 'Specify the git tag'
67
82
required: false
68
-
os:
69
-
description: 'Override the assumed OS. Options are alpine | linux | macos | windows.'
70
-
required: false
71
83
root_dir:
72
84
description: 'Used when not in git/hg project to identify project root directory'
73
85
required: false
74
86
slug:
75
87
description: 'Specify the slug manually (Enterprise use)'
76
88
required: false
89
+
swift:
90
+
description: 'Run with swift coverage support'
91
+
required: false
92
+
swift_project:
93
+
description: 'Specify the swift project to speed up coverage conversion'
94
+
required: false
95
+
upstream_proxy:
96
+
description: 'The upstream http proxy server to connect through'
97
+
required: false
77
98
url:
78
99
description: 'Change the upload host (Enterprise use)'
79
100
required: false
@@ -92,6 +113,9 @@ inputs:
92
113
xcode_archive_path:
93
114
description: 'Specify the xcode archive path. Likely specified as the -resultBundlePath and should end in .xcresult'
94
115
required: false
116
+
xtra_args:
117
+
description: 'Add additional uploader args that may be missing in the Action'
0 commit comments