File tree Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change 88 cmds :
99 - task : build
1010
11- test :
12- desc : Test project
13- cmds :
14- - go test -coverprofile=coverage.out ./...
15- - go tool cover -func=coverage.out
16-
1711 security :
1812 desc : Run gosec for project
1913 cmds :
@@ -24,6 +18,12 @@ tasks:
2418 cmds :
2519 - go generate ./...
2620
21+ test :
22+ desc : Test project
23+ cmds :
24+ - go test -coverprofile=coverage.out ./...
25+ - go tool cover -func=coverage.out
26+
2727 build :
2828 desc : Test release CLI
2929 cmds :
@@ -35,30 +35,24 @@ tasks:
3535 install :
3636 desc : Install CLI to $GOPATH/bin
3737 cmds :
38+ - task : generate
3839 - task : security
3940 - task : test
40- - task : generate
4141 - go build -i -o $GOPATH/bin/cgapp ./*.go
4242
43- docker-image :
44- desc : Build Docker image with full features
45- cmds :
46- - task : build
47- - docker build . -t koddr/cgapp
48-
4943 release :
5044 desc : GitHub release for CLI
5145 cmds :
46+ - task : generate
5247 - task : security
5348 - task : test
54- - git tag -a {{.TAG}} -m "{{.TAG}}"
55- - git push origin {{.TAG}}
49+ - git tag -a {{.VERSION}} -m "{{.VERSION}}"
5650 - goreleaser --snapshot --skip-publish --rm-dist
5751
5852 delete-tag :
59- desc : Delete git tag
53+ desc : Delete git tag (version)
6054 cmds :
61- - git tag --delete {{.TAG }}
55+ - git tag --delete {{.VERSION }}
6256
6357 update-pkg-cache :
6458 desc : Update pkg.go.dev cache for a new version
You can’t perform that action at this time.
0 commit comments