INNER CODE UNIT · Go
readCIIsolationWorkflowAt
minekube/gate · ci_write_token_isolation_test.go:62
func readCIIsolationWorkflowAt(t *testing.T, path string) (ciIsolationWorkflow, string) {
t.Helper()
raw, err := os.ReadFile(path)
if err != nil {
t.Fatal(err)
}
var workflow ciIsolationWorkflow
if err := yaml.Unmarshal(raw, &workflow); err != nil {
t.Fatal(err)
}
return workflow, string(raw)
}
func ciIsolationJob(t *testing.T, workflow ciIsolationWorkflow, name string) ciIsolationWorkflowJob {
t.Helper()