codecov
A module for uploading test coverage reports to CodecovInstallation
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
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | Directory containing git repo and coverage output |
token | Secret ! | - | codecov token for the git repo |
name | String | - | optional name |
verbose | Boolean | - | 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)
}