Skip to content

Commit d01656a

Browse files
authored
Merge pull request #2 from Peefy/chore-adjust-ci-test
chore: adjust makefile and ci scripts
2 parents 0cdfda3 + ff729f5 commit d01656a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
# Go workspace file
2121
go.work
22+
# Go coverage test
23+
coverage.out
2224

2325
build/
2426
.vscode/

makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
VERSION := $(shell cat VERSION)
22

3-
PKG:= kcl-lang.io/kcl
4-
LDFLAGS := -X $(PKG)/cmd.Version=$(VERSION)
3+
PKG:= kcl-lang.io/cli
4+
LDFLAGS := -X $(PKG)/pkg/version.version=$(VERSION)
5+
COVER_FILE ?= coverage.out
6+
SOURCE_PATHS ?= ./pkg/...
57

68
GO ?= go
79

pkg/version/version_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func TestGetVersionInStr(t *testing.T) {
99
}{
1010
{
1111
name: "test get version in string",
12-
want: "0.3.6",
12+
want: "0.7.0-alpha.1",
1313
},
1414
}
1515
for _, tt := range tests {

0 commit comments

Comments
 (0)