@zuke/codecov
`@zuke/codecov` — a typed Codecov CLI (`codecovcli`) task wrapper for Zuke
@zuke/codecov on JSR ↗ 3 symbols
Symbols
const CodecovTasks: CodecovTasksApi Typed task functions for the Codecov CLI.
interface CodecovTasksApi The shape of CodecovTasks.
| Member | Signature | Doc |
|---|---|---|
upload | upload(configure?: Configure<CodecovUploadSettings>): Promise<CommandOutput> | Upload coverage reports: codecovcli upload-process. |
class CodecovUploadSettings extends ToolSettings Settings for codecovcli upload-process.
| Member | Signature | Doc |
|---|---|---|
files | files(...paths: string[]): this | A coverage report file to upload (--file). Repeatable. |
flags | flags(...names: string[]): this | Tag the uploaded reports with a flag (--flag). Repeatable. |
plugins | plugins(...names: string[]): this | Run an upload plugin, e.g. gcov or noop (--plugin). Repeatable. |
token | token(value: string): this | Repository upload token. Routed through CODECOV_TOKEN rather than --token, because a child's argv is world-readable: ps or /proc/<pid>/cmdline shows it to every other user on the host and to every process the build starts. The environment of another process is not readable the same way, and the CLI documents the variable, so nothing is given up by preferring it. Also registered with the run's redactor, so a value that reaches the output some other way — an error message quoting a URL, a tool echoing its own configuration — is masked there too. |
slug | slug(value: string): this | Repository slug as OWNER/REPO (--slug). |
sha | sha(value: string): this | Commit SHA the coverage belongs to (--sha). |
branch | branch(value: string): this | Branch the coverage belongs to (--branch). |
pullRequest | pullRequest(value: string | number): this | Pull request number the coverage belongs to (--pr). |
gitService | gitService(value: string): this | Git host the repo lives on, e.g. github (--git-service). |
name | name(value: string): this | A custom display name for this upload (--name). |
dir | dir(value: string): this | Directory to search for coverage reports (--dir). |
networkRootFolder | networkRootFolder(value: string): this | Root folder used to resolve report file paths (--network-root-folder). |
reportType | reportType(value: string): this | Report kind: coverage (default) or test_results (--report-type). |
disableSearch | disableSearch(): this | Upload only the named files, skipping the auto-search (--disable-search). |
handleNoReportsFound | handleNoReportsFound(): this | Succeed instead of erroring when no reports are found (--handle-no-reports-found). |
failOnError | failOnError(): this | Exit non-zero when the upload fails (--fail-on-error). |
dryRun | dryRun(): this | Print what would be uploaded without sending anything (--dry-run). |