Skip to content

refactor: queue pr part 1 #3268

refactor: queue pr part 1

refactor: queue pr part 1 #3268

Triggered via pull request January 5, 2025 08:07
@devhaozidevhaozi
synchronize #808
haozi/queue1
Status Failure
Total duration 1m 10s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint / lint: event/application_test.go#L65
cannot use mockQueue (variable of type *"github.com/goravel/framework/mocks/queue".Queue) as "github.com/goravel/framework/contracts/queue".Queue value in argument to NewApplication: *"github.com/goravel/framework/mocks/queue".Queue does not implement "github.com/goravel/framework/contracts/queue".Queue (wrong type for method Worker)
lint / lint: event/task_test.go#L9
"github.com/goravel/framework/contracts/queue" imported as queuecontract and not used
lint / lint: event/task_test.go#L38
cannot use mockQueue (variable of type *"github.com/goravel/framework/mocks/queue".Queue) as "github.com/goravel/framework/contracts/queue".Queue value in argument to NewTask: *"github.com/goravel/framework/mocks/queue".Queue does not implement "github.com/goravel/framework/contracts/queue".Queue (wrong type for method Worker)
lint / lint: event/task_test.go#L55
cannot use mockQueue (variable of type *"github.com/goravel/framework/mocks/queue".Queue) as "github.com/goravel/framework/contracts/queue".Queue value in argument to NewTask: *"github.com/goravel/framework/mocks/queue".Queue does not implement "github.com/goravel/framework/contracts/queue".Queue (wrong type for method Worker)
lint / lint: event/task_test.go#L66
cannot use mockQueue (variable of type *"github.com/goravel/framework/mocks/queue".Queue) as "github.com/goravel/framework/contracts/queue".Queue value in argument to NewTask: *"github.com/goravel/framework/mocks/queue".Queue does not implement "github.com/goravel/framework/contracts/queue".Queue (wrong type for method Worker)
lint / lint: event/task_test.go#L75
cannot use mockQueue (variable of type *"github.com/goravel/framework/mocks/queue".Queue) as "github.com/goravel/framework/contracts/queue".Queue value in argument to NewTask: *"github.com/goravel/framework/mocks/queue".Queue does not implement "github.com/goravel/framework/contracts/queue".Queue (wrong type for method Worker)
lint / lint: foundation/container.go#L46
could not import github.com/goravel/framework/mail (-: # github.com/goravel/framework/mail
lint / lint: mail/application.go#L73
undefined: queuecontract.Arg) (typecheck)
lint / lint: mail/application.go#L73
undefined: queuecontract.Arg (typecheck)
lint / lint: queue/driver_async_test.go#L68
cannot use nil as "github.com/goravel/framework/contracts/queue".Args value in argument to s.app.Worker (typecheck)
lint / lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636