forgejoactions

package
v0.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package forgejoactions is the Forgejo Actions ci.Driver for behaviour tests.

It is a minimal stub: every operation returns an error that satisfies errors.Is(err, drivers.ErrNotImplemented) and names the operation. It never delegates to the GitHub Actions or GitLab CI drivers, and it does not implement the optional ci.RunLister, ci.EmptyMatrixWaiter, or ci.AgentArtifactDownloader extensions. The real driver is #9651.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client forge.Client, token string) ci.Driver

New returns the Forgejo Actions CI driver.

Types

type Driver

type Driver struct {
	// Client is the forge client the driver was built with. The stub
	// does not use it.
	Client forge.Client
	// Token is the credential the driver was built with. The stub does
	// not use it.
	Token string
}

Driver implements ci.Driver for Forgejo Actions. Client and Token are set at construction and never modified, so it is safe for concurrent use.

func (*Driver) AssertNoHarnessAgentArtifact

func (d *Driver) AssertNoHarnessAgentArtifact(context.Context, string, string, string, time.Time) error

func (*Driver) AssertNoWorkflow

func (d *Driver) AssertNoWorkflow(context.Context, string, string, string, time.Time) error

func (*Driver) CountHarnessDispatches

func (d *Driver) CountHarnessDispatches(context.Context, string, string, string, time.Time) (int, error)

func (*Driver) DownloadArtifacts

func (d *Driver) DownloadArtifacts(context.Context, string, string, int, string) error

func (*Driver) DownloadNamedArtifactAfter

func (d *Driver) DownloadNamedArtifactAfter(context.Context, string, string, string, time.Time, string) error

func (*Driver) DownloadNamedArtifactFromRun

func (d *Driver) DownloadNamedArtifactFromRun(context.Context, string, string, int, string, string) error

func (*Driver) FindCompletedWorkflowRun

func (d *Driver) FindCompletedWorkflowRun(context.Context, string, string, string, time.Time) (*forge.WorkflowRun, error)

func (*Driver) GetRunLogs

func (d *Driver) GetRunLogs(context.Context, string, string, int) (string, error)

func (*Driver) WaitForFailedHarnessAgent

func (d *Driver) WaitForFailedHarnessAgent(context.Context, string, string, string, time.Time) (*forge.WorkflowRun, error)

func (*Driver) WaitForHarnessAgent

func (d *Driver) WaitForHarnessAgent(context.Context, string, string, string, time.Time) (*forge.WorkflowRun, error)

func (*Driver) WaitForHarnessAgentRound

func (d *Driver) WaitForHarnessAgentRound(context.Context, string, string, string, time.Time, map[int]bool) (*forge.WorkflowRun, error)

func (*Driver) WaitForWorkflow

func (d *Driver) WaitForWorkflow(context.Context, string, string, string, time.Time, string) (*forge.WorkflowRun, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL