Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Feb 20, 2025
1 parent ff26f79 commit c9cd3d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/actions/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ func Test(ctx context.Context) error {

for _, file := range files {
if strings.Contains(file, "gen.yaml") || strings.Contains(file, "gen.lock") {

cfg, err := config.Load(filepath.Join(environment.GetWorkspace(), "repo", file))
relativeCfgDir := filepath.Dir(file)
cfg, err := config.Load(filepath.Join(environment.GetWorkspace(), "repo", relativeCfgDir))
if err != nil {
return fmt.Errorf("failed to load config: %w", err)
}

relativeCfgDir := filepath.Dir(file)

file, _ := os.ReadFile(file)

fmt.Println("file")
Expand Down

0 comments on commit c9cd3d9

Please sign in to comment.