cmd

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CITestConf

type CITestConf struct {
	ID                         string            `yaml:"id" json:"id"`
	IDSanitized                string            `json:"id_sanitized"`
	Path                       string            `yaml:"path" json:"path"`
	TestEnvType                string            `yaml:"test_env_type" json:"test_env_type"`
	RunsOn                     string            `yaml:"runs_on" json:"runs_on"`
	TestCmd                    string            `yaml:"test_cmd" json:"test_cmd"`
	TestConfigOverrideRequired bool              `yaml:"test_config_override_required" json:"test_config_override_required"`
	TestConfigOverridePath     string            `yaml:"test_config_override_path" json:"test_config_override_path"`
	TestSecretsRequired        bool              `yaml:"test_secrets_required" json:"test_secrets_required"`
	TestEnvVars                map[string]string `yaml:"test_env_vars" json:"test_env_vars"`
	RemoteRunnerMemory         string            `yaml:"remote_runner_memory" json:"remote_runner_memory"`
	PyroscopeEnv               string            `yaml:"pyroscope_env" json:"pyroscope_env"`
	Workflows                  []string          `yaml:"workflows" json:"workflows"`
}

CITestConf defines the configuration for running a test in a CI environment, specifying details like test ID, path, type, runner settings, command, and associated workflows.

type Config

type Config struct {
	Tests []CITestConf `yaml:"runner-test-matrix"`
}

type JobConfig

type JobConfig struct {
	Jobs map[string]struct {
		Strategy struct {
			Matrix struct {
				Test []struct {
					Path     string `yaml:"path"`
					TestOpts string `yaml:"testOpts"`
				} `yaml:"test"`
			} `yaml:"matrix"`
		} `yaml:"strategy"`
	} `yaml:"jobs"`
}

type Test

type Test struct {
	Name string
	Path string
}

Jump to

Keyboard shortcuts

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