export-cassette
Export cassette checks. Container images are built directly from Dockerfile.
Installation
dagger install github.com/papercomputeco/export-cassette@f7daa7d864e237cb50fe88263e620e7254200640Entrypoint
Return Type
ExportCassette !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Project source directory. |
Example
dagger -m github.com/papercomputeco/export-cassette@f7daa7d864e237cb50fe88263e620e7254200640 call \
func (m *MyModule) Example() *dagger.ExportCassette {
return dag.
Exportcassette()
}@function
def example() -> dagger.ExportCassette:
return (
dag.export_cassette()
)@func()
example(): ExportCassette {
return dag
.exportCassette()
}Types
ExportCassette 🔗
test() 🔗
Test runs the unit suite, as a check so it joins the ones the go and golangcilint toolchains contribute rather than being a second CI mechanism beside them.
The name is what makes the reported check export-cassette:test, matching
search-cassette:test and skills-cassette:test — the check name is the
function name, so the three cassettes only read alike if they are declared
alike.
-count=1 because a check that can be satisfied from the test cache is not running the thing it claims to run; the mounted build cache is what keeps that affordable.
Return Type
String ! Example
dagger -m github.com/papercomputeco/export-cassette@f7daa7d864e237cb50fe88263e620e7254200640 call \
testfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Exportcassette().
Test(ctx)
}@function
async def example() -> str:
return await (
dag.export_cassette()
.test()
)@func()
async example(): Promise<string> {
return dag
.exportCassette()
.test()
}