Dagger
Search

cicd

No long description provided.

Installation

dagger install github.com/danparisi/cicd-actions/dagger@2958280746423b2459280b7c77f2f6fce4ae0e0d

Entrypoint

Return Type
Cicd
Example
dagger -m github.com/danparisi/cicd-actions/dagger@2958280746423b2459280b7c77f2f6fce4ae0e0d call \
func (m *MyModule) Example() *dagger.Cicd  {
	return dag.
			Cicd()
}
@function
def example() -> dagger.Cicd:
	return (
		dag.cicd()
	)
@func()
example(): Cicd {
	return dag
		.cicd()
}

Types

Cicd 🔗

App-agnostic CI pipeline.

Intended usage from any app repo (local parity with GitHub workflows):

dagger -m github.com/danparisi/cicd-actions/dagger@v1 call ci –source .

Or from a checkout of this repo:

cd dagger && dagger call ci –source /path/to/app

NOTE: lint() findings fail the call (blocking), matching the warn-only vs blocking contract documented in the repo README — except the SARIF produced inside lint() containers is container-scoped and is NOT uploaded anywhere on local runs (intended; upload happens only in the GitHub composite actions via upload-sarif).

backendTest() 🔗

Java backend: regenerate sources then run the full test suite. Expects a Maven project at the source root (pom.xml).

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/danparisi/cicd-actions/dagger@2958280746423b2459280b7c77f2f6fce4ae0e0d call \
 backend-test --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Cicd().
			Backendtest(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.cicd()
		.backendtest(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.cicd()
		.backendTest(source)
}

frontendTest() 🔗

Node frontend: install, codegen, typecheck, build, unit tests. Expects the app under frontend/ (pnpm, Vitest).

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/danparisi/cicd-actions/dagger@2958280746423b2459280b7c77f2f6fce4ae0e0d call \
 frontend-test --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Cicd().
			Frontendtest(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.cicd()
		.frontendtest(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.cicd()
		.frontendTest(source)
}

lint() 🔗

Fast static analysis (<15s target for pre-push): Opengrep + Gitleaks, then Biome on frontend/. Fails the call on tool findings.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/danparisi/cicd-actions/dagger@2958280746423b2459280b7c77f2f6fce4ae0e0d call \
 lint --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Cicd().
			Lint(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.cicd()
		.lint(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.cicd()
		.lint(source)
}

ci() 🔗

Full local gate: backend + frontend + lint. Returns “ci green”.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/danparisi/cicd-actions/dagger@2958280746423b2459280b7c77f2f6fce4ae0e0d call \
 ci --source DIR_PATH
func (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string  {
	return dag.
			Cicd().
			Ci(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.cicd()
		.ci(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.cicd()
		.ci(source)
}