Skip to content

Commit 2defa50

Browse files
committed
Build local binary for tests
1 parent 5b51e60 commit 2defa50

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
with:
2222
go-version-file: "go.mod"
2323

24+
- name: Build for tests
25+
run: make build
26+
2427
- name: Run tests
2528
run: make test
2629

test/e2e_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func command(t *testing.T, stdout, stderr io.Writer, conf conf) *exec.Cmd {
192192
}
193193
parts = append(parts, conf.pattern)
194194
parts = append(parts, "--", "echo", "hello")
195-
cmd := exec.Command("cng", parts...)
195+
cmd := exec.Command("./dist/cng", parts...)
196196
// t.Log("CMD:", cmd.String())
197197
cmd.Stdout = stdout
198198
cmd.Stderr = stderr

0 commit comments

Comments
 (0)