githubactions

package
v0.34.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

type Driver

type Driver struct {
	Client forge.Client
	Token  string
}

Driver implements ci.Driver against GitHub Actions.

func (*Driver) AssertNoHarnessAgentArtifact

func (d *Driver) AssertNoHarnessAgentArtifact(ctx context.Context, owner, repo, agent string, after time.Time) error

AssertNoHarnessAgentArtifact asserts that the named agent's harness job did not run after the trigger time. It checks workflow run jobs rather than artifacts so that sibling runs for other agents are not mistaken for evidence.

func (*Driver) AssertNoWorkflow

func (d *Driver) AssertNoWorkflow(ctx context.Context, owner, repo, workflowFile string, after time.Time) error

func (*Driver) CountHarnessDispatches added in v0.32.0

func (d *Driver) CountHarnessDispatches(ctx context.Context, owner, repo, agent string, after time.Time) (int, error)

CountHarnessDispatches returns the number of harness workflow runs that scheduled the "Harness run (<agent>)" job after the trigger time.

func (*Driver) DownloadArtifacts

func (d *Driver) DownloadArtifacts(ctx context.Context, owner, repo string, runID int, destDir string) error

func (*Driver) DownloadNamedArtifactAfter

func (d *Driver) DownloadNamedArtifactAfter(ctx context.Context, owner, repo, artifactName string, after time.Time, destDir string) error

func (*Driver) DownloadNamedArtifactFromRun

func (d *Driver) DownloadNamedArtifactFromRun(ctx context.Context, owner, repo string, runID int, artifactName string, destDir string) error

func (*Driver) FindCompletedWorkflowRun

func (d *Driver) FindCompletedWorkflowRun(ctx context.Context, owner, repo, workflowFile string, after time.Time) (*forge.WorkflowRun, error)

func (*Driver) GetRunLogs

func (d *Driver) GetRunLogs(ctx context.Context, owner, repo string, runID int) (string, error)

func (*Driver) WaitForHarnessAgent

func (d *Driver) WaitForHarnessAgent(ctx context.Context, owner, repo, agent string, after time.Time) (*forge.WorkflowRun, error)

WaitForHarnessAgent waits for a successful harness-run workflow job for the named agent. It fails fast only when a workflow run that contains the agent's "Harness run (<agent>)" job reaches a terminal failure conclusion. Sibling workflow runs that do not schedule the agent's job are ignored.

func (*Driver) WaitForWorkflow

func (d *Driver) WaitForWorkflow(ctx context.Context, owner, repo, workflowFile string, after time.Time, event string) (*forge.WorkflowRun, error)

Jump to

Keyboard shortcuts

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