File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 9
9
parameters :
10
10
go_version :
11
11
type : string
12
- run_style :
12
+ run_style_and_unused :
13
13
type : boolean
14
14
default : false
15
15
run_lint :
@@ -28,15 +28,15 @@ jobs:
28
28
steps :
29
29
- go/load-cache :
30
30
key : v1-go<< parameters.go_version >>
31
- - run : make check_license unused test
31
+ - run : make check_license test
32
32
- when :
33
33
condition : << parameters.run_lint >>
34
34
steps :
35
35
- run : make lint
36
36
- when :
37
- condition : << parameters.run_style >>
37
+ condition : << parameters.run_style_and_unused >>
38
38
steps :
39
- - run : make style
39
+ - run : make style unused
40
40
- when :
41
41
condition : << parameters.use_gomod_cache >>
42
42
steps :
@@ -78,5 +78,6 @@ workflows:
78
78
name : go-1-15
79
79
go_version : " 1.15"
80
80
run_lint : true
81
- # Style is only checked against the latest supported Go version.
82
- run_style : true
81
+ # Style and unused/missing packages are only checked against
82
+ # the latest supported Go version.
83
+ run_style_and_unused : true
You can’t perform that action at this time.
0 commit comments