Skip to content

Commit

Permalink
Build local binary for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danawoodman committed Feb 26, 2024
1 parent 5b51e60 commit 2defa50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
with:
go-version-file: "go.mod"

- name: Build for tests
run: make build

- name: Run tests
run: make test

Expand Down
2 changes: 1 addition & 1 deletion test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func command(t *testing.T, stdout, stderr io.Writer, conf conf) *exec.Cmd {
}
parts = append(parts, conf.pattern)
parts = append(parts, "--", "echo", "hello")
cmd := exec.Command("cng", parts...)
cmd := exec.Command("./dist/cng", parts...)
// t.Log("CMD:", cmd.String())
cmd.Stdout = stdout
cmd.Stderr = stderr
Expand Down

0 comments on commit 2defa50

Please sign in to comment.