Skip to content

Commit 2ff92e0

Browse files
committed
chore: fix Windows' path for CI
Signed-off-by: Joseph Kato <joseph@jdkato.io>
1 parent 072ac4f commit 2ff92e0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

internal/lint/lint_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ import (
1313
)
1414

1515
func TestSymlinkFixture(t *testing.T) {
16+
// This is an integration test: it shells out to an installed `vale`
17+
// binary. Skip when one isn't on PATH (e.g., local `go test ./...` or a
18+
// CI job that builds the binary without installing it) rather than failing.
19+
if _, err := exec.LookPath("vale"); err != nil {
20+
t.Skip("vale binary not found on PATH")
21+
}
22+
1623
fixture := "../../testdata/fixtures/misc/symlinks"
1724

1825
targetSrc := system.AbsPath(filepath.Join(fixture, "Symlinked"))

0 commit comments

Comments
 (0)