File tree 2 files changed +17
-6
lines changed
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
13
+ golangci-lint :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+
17
+ - uses : actions/setup-go@v2
18
+ with :
19
+ go-version : ' 1.17'
20
+
21
+ - uses : actions/checkout@v2
22
+
23
+ - uses : golangci/golangci-lint-action@v2
24
+ with :
25
+ version : latest
26
+ args : --verbose
13
27
14
28
test-unix :
15
29
strategy :
@@ -41,16 +55,14 @@ jobs:
41
55
42
56
- run : |
43
57
export GOBIN=$HOME/go/bin
44
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $GOBIN latest
45
58
case "${{ matrix.go }}" in
46
59
16|17) _version='@latest';;
47
60
*) _version='';;
48
61
esac
49
62
go install github.com/kyoh86/richgo"${_version}"
50
63
go install github.com/mitchellh/gox"${_version}"
51
64
52
- - run : PATH=$HOME/go/bin/:$PATH make
53
-
65
+ - run : PATH=$HOME/go/bin/:$PATH make test cobra_generator
54
66
55
67
test-win :
56
68
name : MINGW64
83
95
84
96
- run : |
85
97
export GOBIN=$HOME/go/bin
86
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $GOBIN latest
87
98
go install github.com/kyoh86/richgo@latest
88
99
go install github.com/mitchellh/gox@latest
89
100
90
- - run : PATH=$HOME/go/bin:$PATH make
101
+ - run : PATH=$HOME/go/bin:$PATH make test cobra_generator
Original file line number Diff line number Diff line change 23
23
$(info ******************** running lint tools ******************** )
24
24
golangci-lint run -v
25
25
26
- test : install_deps lint
26
+ test : install_deps
27
27
$(info ******************** running tests ******************** )
28
28
richgo test -v ./...
29
29
You can’t perform that action at this time.
0 commit comments