mirror of
				https://gitea.com/gitea/act_runner.git
				synced 2025-10-30 20:37:56 +01:00 
			
		
		
		
	Bump act to v0.260.0 (#522)
Related to https://gitea.com/gitea/act/issues/99. Also update other main dependencies. Reviewed-on: https://gitea.com/gitea/act_runner/pulls/522 Reviewed-by: Zettat123 <zettat123@noreply.gitea.com>
This commit is contained in:
		| @@ -1,11 +1,11 @@ | ||||
| // Code generated by mockery v2.26.1. DO NOT EDIT. | ||||
| // Code generated by mockery v2.42.1. DO NOT EDIT. | ||||
|  | ||||
| package mocks | ||||
|  | ||||
| import ( | ||||
| 	context "context" | ||||
|  | ||||
| 	connect "github.com/bufbuild/connect-go" | ||||
| 	connect "connectrpc.com/connect" | ||||
|  | ||||
| 	mock "github.com/stretchr/testify/mock" | ||||
|  | ||||
| @@ -23,6 +23,10 @@ type Client struct { | ||||
| func (_m *Client) Address() string { | ||||
| 	ret := _m.Called() | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for Address") | ||||
| 	} | ||||
|  | ||||
| 	var r0 string | ||||
| 	if rf, ok := ret.Get(0).(func() string); ok { | ||||
| 		r0 = rf() | ||||
| @@ -37,6 +41,10 @@ func (_m *Client) Address() string { | ||||
| func (_m *Client) Declare(_a0 context.Context, _a1 *connect.Request[runnerv1.DeclareRequest]) (*connect.Response[runnerv1.DeclareResponse], error) { | ||||
| 	ret := _m.Called(_a0, _a1) | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for Declare") | ||||
| 	} | ||||
|  | ||||
| 	var r0 *connect.Response[runnerv1.DeclareResponse] | ||||
| 	var r1 error | ||||
| 	if rf, ok := ret.Get(0).(func(context.Context, *connect.Request[runnerv1.DeclareRequest]) (*connect.Response[runnerv1.DeclareResponse], error)); ok { | ||||
| @@ -63,6 +71,10 @@ func (_m *Client) Declare(_a0 context.Context, _a1 *connect.Request[runnerv1.Dec | ||||
| func (_m *Client) FetchTask(_a0 context.Context, _a1 *connect.Request[runnerv1.FetchTaskRequest]) (*connect.Response[runnerv1.FetchTaskResponse], error) { | ||||
| 	ret := _m.Called(_a0, _a1) | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for FetchTask") | ||||
| 	} | ||||
|  | ||||
| 	var r0 *connect.Response[runnerv1.FetchTaskResponse] | ||||
| 	var r1 error | ||||
| 	if rf, ok := ret.Get(0).(func(context.Context, *connect.Request[runnerv1.FetchTaskRequest]) (*connect.Response[runnerv1.FetchTaskResponse], error)); ok { | ||||
| @@ -89,6 +101,10 @@ func (_m *Client) FetchTask(_a0 context.Context, _a1 *connect.Request[runnerv1.F | ||||
| func (_m *Client) Insecure() bool { | ||||
| 	ret := _m.Called() | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for Insecure") | ||||
| 	} | ||||
|  | ||||
| 	var r0 bool | ||||
| 	if rf, ok := ret.Get(0).(func() bool); ok { | ||||
| 		r0 = rf() | ||||
| @@ -103,6 +119,10 @@ func (_m *Client) Insecure() bool { | ||||
| func (_m *Client) Ping(_a0 context.Context, _a1 *connect.Request[pingv1.PingRequest]) (*connect.Response[pingv1.PingResponse], error) { | ||||
| 	ret := _m.Called(_a0, _a1) | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for Ping") | ||||
| 	} | ||||
|  | ||||
| 	var r0 *connect.Response[pingv1.PingResponse] | ||||
| 	var r1 error | ||||
| 	if rf, ok := ret.Get(0).(func(context.Context, *connect.Request[pingv1.PingRequest]) (*connect.Response[pingv1.PingResponse], error)); ok { | ||||
| @@ -129,6 +149,10 @@ func (_m *Client) Ping(_a0 context.Context, _a1 *connect.Request[pingv1.PingRequ | ||||
| func (_m *Client) Register(_a0 context.Context, _a1 *connect.Request[runnerv1.RegisterRequest]) (*connect.Response[runnerv1.RegisterResponse], error) { | ||||
| 	ret := _m.Called(_a0, _a1) | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for Register") | ||||
| 	} | ||||
|  | ||||
| 	var r0 *connect.Response[runnerv1.RegisterResponse] | ||||
| 	var r1 error | ||||
| 	if rf, ok := ret.Get(0).(func(context.Context, *connect.Request[runnerv1.RegisterRequest]) (*connect.Response[runnerv1.RegisterResponse], error)); ok { | ||||
| @@ -155,6 +179,10 @@ func (_m *Client) Register(_a0 context.Context, _a1 *connect.Request[runnerv1.Re | ||||
| func (_m *Client) UpdateLog(_a0 context.Context, _a1 *connect.Request[runnerv1.UpdateLogRequest]) (*connect.Response[runnerv1.UpdateLogResponse], error) { | ||||
| 	ret := _m.Called(_a0, _a1) | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for UpdateLog") | ||||
| 	} | ||||
|  | ||||
| 	var r0 *connect.Response[runnerv1.UpdateLogResponse] | ||||
| 	var r1 error | ||||
| 	if rf, ok := ret.Get(0).(func(context.Context, *connect.Request[runnerv1.UpdateLogRequest]) (*connect.Response[runnerv1.UpdateLogResponse], error)); ok { | ||||
| @@ -181,6 +209,10 @@ func (_m *Client) UpdateLog(_a0 context.Context, _a1 *connect.Request[runnerv1.U | ||||
| func (_m *Client) UpdateTask(_a0 context.Context, _a1 *connect.Request[runnerv1.UpdateTaskRequest]) (*connect.Response[runnerv1.UpdateTaskResponse], error) { | ||||
| 	ret := _m.Called(_a0, _a1) | ||||
|  | ||||
| 	if len(ret) == 0 { | ||||
| 		panic("no return value specified for UpdateTask") | ||||
| 	} | ||||
|  | ||||
| 	var r0 *connect.Response[runnerv1.UpdateTaskResponse] | ||||
| 	var r1 error | ||||
| 	if rf, ok := ret.Get(0).(func(context.Context, *connect.Request[runnerv1.UpdateTaskRequest]) (*connect.Response[runnerv1.UpdateTaskResponse], error)); ok { | ||||
| @@ -203,13 +235,13 @@ func (_m *Client) UpdateTask(_a0 context.Context, _a1 *connect.Request[runnerv1. | ||||
| 	return r0, r1 | ||||
| } | ||||
|  | ||||
| type mockConstructorTestingTNewClient interface { | ||||
| // NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | ||||
| // The first argument is typically a *testing.T value. | ||||
| func NewClient(t interface { | ||||
| 	mock.TestingT | ||||
| 	Cleanup(func()) | ||||
| } | ||||
|  | ||||
| // NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | ||||
| func NewClient(t mockConstructorTestingTNewClient) *Client { | ||||
| }, | ||||
| ) *Client { | ||||
| 	mock := &Client{} | ||||
| 	mock.Mock.Test(t) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user