change: trigger actions on push to main branch

This commit is contained in:
debugtalk
2022-03-28 21:43:41 +08:00
parent 8d627f7ba2
commit 8fb1f6e0c9
7 changed files with 15 additions and 9 deletions
+3 -3
View File
@@ -323,11 +323,11 @@ func (tc *TestCase) ToTestCase() (*TestCase, error) {
return tc, nil
}
func convertTestCase(testcase *TestCase) *TCase {
func (tc *TestCase) ToTCase() *TCase {
tCase := &TCase{
Config: testcase.Config,
Config: tc.Config,
}
for _, step := range testcase.TestSteps {
for _, step := range tc.TestSteps {
tCase.TestSteps = append(tCase.TestSteps, step.ToStruct())
}
return tCase