Dagger
Search

codecov

A module for uploading test coverage reports to Codecov

Installation

dagger install github.com/kpenfound/dagger-modules/codecov@v0.1.1

Entrypoint

Return Type
Codecov
Example
dagger -m github.com/kpenfound/dagger-modules/codecov@9c07696ffaaecf5cb951dd846c492afdeae34456 call \
func (m *myModule) example() *Codecov  {
	return dag.
			Codecov()
}
@function
def example() -> dag.Codecov:
	return (
		dag.codecov()
	)
@func()
example(): Codecov {
	return dag
		.codecov()
}

Types

Codecov 🔗

upload() 🔗

upload: upload coverage reports to codecov.io

Return Type
String !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-Directory containing git repo and coverage output
tokenSecret !-codecov token for the git repo
nameString -optional name
verboseBoolean -optional verbose output
files[String ! ] -optional list of coverage files
flags[String ! ] -optional additional flags for uploader
Example
dagger -m github.com/kpenfound/dagger-modules/codecov@9c07696ffaaecf5cb951dd846c492afdeae34456 call \
 upload --dir DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, dir *Directory, token *Secret) string  {
	return dag.
			Codecov().
			Upload(ctx, dir, token)
}
@function
async def example(dir: dagger.Directory, token: dagger.Secret) -> str:
	return await (
		dag.codecov()
		.upload(dir, token)
	)
@func()
async example(dir: Directory, token: Secret): Promise<string> {
	return dag
		.codecov()
		.upload(dir, token)
}