1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/codecov/0.1
Billy Lynch 8db4239324 Add comments sensative looking material for usage.
This change simply adds comments to secrets and other password/key
material that are used in testing. The usage of these secrets is okay
(they're all either dummy tokens or auth material set for local
instances spun up during tests), but adding comments to provide some
background for anyone browsing the code.

Also redacted a cert used in the buildah sample. While this was
safe since it was generated specifically for the sample, there isn't a strict
need for a valid cert here, so we can replace this with something that looks
cert-like instead.
2021-04-15 18:37:41 +01:00
..
samples Add codecov task 2020-11-04 13:15:22 +00:00
tests Add comments sensative looking material for usage. 2021-04-15 18:37:41 +01:00
codecov.yaml Add codecov task 2020-11-04 13:15:22 +00:00
README.md Update self reference from master to main 🧙 2021-03-19 11:09:49 +00:00

Codecov

Upload your code coverage to codecov.io

Installing the Task

kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/codecov/0.1/codecov.yaml

Parameters

  • codecov-token-secret: Name of the secret holding the codecov token. (Default: codecov-token)
  • codecov-token-secret-key: Name of the secret key holding the codecov token. (Default: token)
  • args: Extra arguments to be passed to the codecov script, more details here (Default: [-Z])

Usage

Generate the code coverage file for your project inside your workspace, see here for the codecov.io documentation:

https://docs.codecov.io/docs/supported-languages

Follow with the codecov task to upload the coverage.

See this sample for a task uploading the coverage of a python application.