From e9131c5f9c6077e1eb636b9aebda02b34b28333a Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 5 Jan 2021 17:31:02 -0500 Subject: [PATCH] Add parameters to the action.yml --- CHANGELOG.md | 5 ++++ README.md | 2 +- action.yml | 73 +++++++++++++++++++++++++++++++++++++++++------ package-lock.json | 2 +- package.json | 2 +- 5 files changed, 73 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45fac3847..70127fe49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 1.2.1 + +#### Fixes +- #196 Add parameters to the action.yml + ### 1.2.0 #### Features diff --git a/README.md b/README.md index 94b726f66..2c6235ff5 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Codecov's Action currently supports five inputs from the user: `token`, `file`, | | `recursesubs` Enable recurse submodules in git projects when searching for source files | | | | `search` Disable searching for reports | | | `xcode` Disable xcode processing | -| `gcov path_include` | Paths to include during gcov gathering (as a glob) | Optional +| `gcov_path_include` | Paths to include during gcov gathering (as a glob) | Optional | `gcov_args` | extra arguments to pass to gcov | Optional | `gcov_executable` | gcov executable to run. Defaults to 'gcov' | Optional | `gcov_path_exclude` | Paths to ignore during gcov gathering (as a glob) | Optional diff --git a/action.yml b/action.yml index 106a66635..5c5096388 100644 --- a/action.yml +++ b/action.yml @@ -2,15 +2,9 @@ name: 'Codecov' description: 'GitHub Action that uploads coverage reports for your repository to codecov.io' author: 'Ibrahim Ali <@ibrahim0814> & Thomas Hu <@thomasrockhu> | Codecov' inputs: - name: - description: 'User defined upload name. Visible in Codecov UI' - required: false 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 @@ -20,8 +14,14 @@ inputs: flags: description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)' required: false - path_to_write_report: - description: 'Write upload file to path before uploading' + aws_curl_args: + description: 'Extra curl arguments to communicate with AWS.' + required: false + codecov_curl_args: + description: 'Extra curl arguments to communicate with Codecov. e.g., -U "--proxy http://http-proxy"' + 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 env_vars: description: 'Environment variables to tag the upload with (e.g. PYTHON | OS,PYTHON)' @@ -29,12 +29,69 @@ inputs: fail_ci_if_error: description: 'Specify whether or not CI build should fail if Codecov runs into an error during upload' required: false + file: + description: 'Path to coverage file to upload' + required: false + functionalities: + description: 'Comma-separated list, see the README for options and their usage' + 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_path_exclude: + description: 'Paths to ignore during gcov gathering (as a glob)' + required: false + gcov_path_include: + description: 'Paths to include during gcov gathering (as a glob)' + required: false + gcov_prefix: + description: 'Prefix filepaths to help resolve path fixing' + required: false + gcov_root_dir: + description: 'Project root directory, also used when preparing gcov' + 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 + 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 + path_to_write_report: + description: 'Write upload file to path before uploading' + required: false + root_dir: + description: 'Used when not in git/hg project to identify project root directory' + required: false verbose: description: 'Specify whether the Codecov output should be verbose' required: false working-directory: description: 'Directory in which to execute codecov.sh' required: false + xcode_derived_data: + description: 'Custom Derived Data Path for Coverage.profdata and gcov processing' + required: false + xcode_package: + description: 'Specify packages to build coverage. Uploader will only build these packages' + required: false branding: color: 'red' icon: 'umbrella' diff --git a/package-lock.json b/package-lock.json index 3be381490..8f26adee2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "codecov-action", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bce455d70..79edd2b5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codecov-action", - "version": "1.2.0", + "version": "1.2.1", "description": "Upload coverage reports to Codecov from GitHub Actions", "main": "index.js", "scripts": {