Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
skywalking-cli
提交
c7e2b3fa
S
skywalking-cli
项目概览
apache
/
skywalking-cli
通知
19
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skywalking-cli
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
c7e2b3fa
编写于
7月 08, 2020
作者:
K
kezhenxu94
提交者:
GitHub
7月 08, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: move tools setup into Makefile to easy the setup work locally (#42)
上级
e3ffd58d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
14 deletion
+12
-14
.github/workflows/go.yml
.github/workflows/go.yml
+0
-6
Makefile
Makefile
+12
-8
未找到文件。
.github/workflows/go.yml
浏览文件 @
c7e2b3fa
...
...
@@ -35,12 +35,6 @@ jobs:
go-version
:
1.13
id
:
go
-
name
:
Set up Packr
run
:
go get -u github.com/gobuffalo/packr/v2/...
-
name
:
Set up GQLGen
run
:
go get -u github.com/99designs/gqlgen
-
name
:
Check out code into the Go module directory
uses
:
actions/checkout@v2
...
...
Makefile
浏览文件 @
c7e2b3fa
...
...
@@ -44,10 +44,16 @@ SHELL = /bin/bash
all
:
clean license deps codegen lint test build
deps
:
tools
:
$(GO_PACKR)
-v
||
go get
-u
github.com/gobuffalo/packr/v2/...
$(GO_LINT)
version
||
curl
-sfL
https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh
-s
--
-b
$(GO_PATH)
/bin v1.21.0
$(GO_LICENSER)
-version
||
GO111MODULE
=
off
$(GO_GET)
-u
github.com/elastic/go-licenser
$(GQL_GEN)
version
||
go get
-u
github.com/99designs/gqlgen
deps
:
tools
$(GO_GET)
-v
-t
-d
./...
codegen
:
clean
codegen
:
clean
tools
echo
'scalar Long'
>
query-protocol/schema.graphqls
$(GQL_GEN)
generate
-
rm
-rf
generated.go
...
...
@@ -59,8 +65,7 @@ $(PLATFORMS):
GOOS
=
$(os)
GOARCH
=
$(ARCH)
$(GO_BUILD)
$(GO_BUILD_FLAGS)
-ldflags
"
$(GO_BUILD_LDFLAGS)
"
-o
$(OUT_DIR)
/
$(BINARY)
-
$(VERSION)
-
$(os)
-
$(ARCH)
cmd/main.go
.PHONY
:
lint
lint
:
codegen
$(GO_LINT)
version
||
curl
-sfL
https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh
-s
--
-b
$(GO_PATH)
/bin v1.21.0
lint
:
codegen tools
$(GO_LINT)
run
-v
./...
.PHONE
:
test
...
...
@@ -71,15 +76,14 @@ test: clean codegen lint
build
:
deps windows linux darwin
.PHONY
:
license
license
:
clean
$(GO_LICENSER)
-version
||
GO111MODULE
=
off
$(GO_GET)
-u
github.com/elastic/go-licenser
license
:
clean tools
$(GO_LICENSER)
-d
-licensor
=
'Apache Software Foundation (ASF)'
.
.PHONY
:
verify
verify
:
clean lint test license
.PHONY
:
fix
fix
:
fix
:
tools
$(GO_LINT)
run
-v
--fix
./...
$(GO_LICENSER)
-licensor
=
'Apache Software Foundation (ASF)'
.
...
...
@@ -88,7 +92,7 @@ coverage: test
bash <
(
curl
-s
https://codecov.io/bash
)
-t
a5af28a3-92a2-4b35-9a77-54ad99b1ae00
.PHONY
:
clean
clean
:
clean
:
tools
-
rm
-rf
bin
-
rm
-rf
coverage.txt
-
rm
-rf
query-protocol/schema.graphqls
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录