diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index f71aeca..df6af26 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -39,6 +39,8 @@ jobs: run: go vet -v ./... - name: build run: go build -v ./... + - name: build without docker + run: go build -tags WITHOUT_DOCKER -v ./... - name: test run: go test -v ./pkg/jobparser # TODO test more packages diff --git a/pkg/container/docker_stub.go b/pkg/container/docker_stub.go index d5c5ef1..155d5ab 100644 --- a/pkg/container/docker_stub.go +++ b/pkg/container/docker_stub.go @@ -56,7 +56,7 @@ func NewDockerVolumeRemoveExecutor(volume string, force bool) common.Executor { } } -func NewDockerNetworkCreateExecutor(name string) common.Executor { +func NewDockerNetworkCreateExecutor(name string, config *types.NetworkCreate) common.Executor { return func(ctx context.Context) error { return nil }